#include <gmlib/sm9/internal/sm9_field.h>
#include <stdexcept>
#include <cstring>

using namespace sm9::internal;

void test_sm9_fn_mul()
{
    sm9_fn_t    a, b, c;
    std::uint8_t c_data[32];

    static std::uint8_t a0[32] = {0x7f,0x65,0x13,0x29,0x02,0x7e,0xe5,0x11,0x0d,0xb9,0xc5,0x0b,0x96,0xd7,0x0f,0x45,0x02,0xd8,0x04,0xe9,0x66,0xc8,0x19,0x0a,0xc5,0x53,0x79,0x06,0x7b,0x77,0xd1,0x0a};
    static std::uint8_t b0[32] = {0x56,0xf4,0x38,0x1c,0x5c,0x29,0xe1,0x9a,0x76,0xf8,0x21,0x0f,0xa5,0xee,0x12,0xb1,0x8d,0xb0,0x7f,0x0f,0x93,0xe9,0x1d,0x67,0xfb,0xf6,0xe8,0xe2,0x40,0x4b,0xf3,0xd1};
    static std::uint8_t c0[32] = {0x38,0xc3,0xda,0x43,0xa3,0x33,0xbc,0x4b,0x9a,0x9c,0x2f,0xab,0x39,0x2f,0x5b,0xc5,0x21,0x6c,0x52,0x29,0xa6,0x5d,0x22,0x78,0xa1,0x24,0x9c,0x96,0x0e,0xed,0xca,0x00};
    sm9_fn_from_bytes(a, a0);
    sm9_fn_from_bytes(b, b0);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c0, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a1[32] = {0x2a,0xf3,0x59,0xfe,0x40,0xe1,0x12,0x90,0x9d,0x0f,0xdd,0x03,0x83,0xe6,0x2a,0xe9,0xe5,0x95,0x20,0xf1,0xac,0xa7,0x69,0x88,0xf4,0x59,0x60,0x7d,0xee,0x59,0x58,0xb1};
    static std::uint8_t b1[32] = {0x72,0xf7,0x79,0xe1,0xe8,0x9e,0x45,0x65,0x13,0x74,0x81,0x67,0xc0,0xfc,0x1d,0xa5,0x56,0xb2,0xb2,0xed,0x11,0xf2,0x29,0xf0,0x2e,0x52,0xe1,0x2d,0x46,0xd6,0xd7,0x29};
    static std::uint8_t c1[32] = {0x60,0x68,0xe3,0x6e,0x78,0xf4,0xfc,0x68,0xb2,0x77,0x6f,0x40,0x59,0xdf,0x0f,0x90,0x2a,0xfb,0xfd,0x3b,0xd4,0xb2,0xd3,0xd6,0x5d,0x54,0xe0,0xf3,0xbb,0xd4,0x45,0x50};
    sm9_fn_from_bytes(a, a1);
    sm9_fn_from_bytes(b, b1);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c1, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a2[32] = {0xb5,0xb0,0x1a,0xbf,0x99,0xe3,0x84,0x63,0x62,0x30,0xbd,0xb9,0xe0,0x6c,0xec,0xa0,0x28,0xe9,0x2c,0xf0,0xb8,0x73,0x82,0xf6,0x08,0x56,0xef,0xcc,0xf4,0x39,0x95,0xfe};
    static std::uint8_t b2[32] = {0x04,0xcb,0x15,0xcb,0x57,0xa6,0xdc,0x2d,0x36,0x43,0x4a,0x26,0x07,0xf6,0x9f,0xb9,0xa7,0xae,0x65,0x4b,0x6e,0x97,0x5c,0x5a,0xac,0x90,0x3c,0x70,0xe8,0xf7,0x07,0x30};
    static std::uint8_t c2[32] = {0x61,0xf3,0x2e,0xf4,0xab,0x84,0x7a,0xed,0xd5,0x95,0x34,0xc9,0xd6,0xc1,0x78,0xe7,0x5a,0x5c,0x7f,0x66,0x10,0x8d,0x8c,0x44,0xb9,0xfe,0x77,0x0f,0x49,0xec,0x3f,0x37};
    sm9_fn_from_bytes(a, a2);
    sm9_fn_from_bytes(b, b2);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c2, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a3[32] = {0x68,0x56,0x1b,0x02,0x14,0x66,0xa0,0xc0,0x78,0x70,0x74,0x16,0x86,0x45,0x32,0xd4,0x97,0x52,0x7b,0x84,0xff,0x9e,0x0f,0xe1,0x1f,0x7a,0x9e,0xae,0x9c,0x94,0xcb,0xf8};
    static std::uint8_t b3[32] = {0x3a,0x44,0xb8,0xb7,0xb3,0x9a,0xcb,0x5c,0x05,0xb4,0x4c,0x0f,0x43,0x3b,0xb6,0x73,0xd0,0x89,0x85,0xd4,0x42,0x1f,0xb8,0xe3,0x67,0x4d,0xf9,0xf9,0x86,0xb8,0x7b,0xe6};
    static std::uint8_t c3[32] = {0x76,0x5b,0xf3,0xd6,0x39,0x93,0x0c,0x59,0x07,0x19,0xaa,0xd4,0xcb,0xc2,0xaa,0x14,0xcd,0xc6,0x41,0xa7,0xbb,0x7e,0xdd,0x85,0x9c,0xe8,0x94,0x86,0x95,0xf9,0xb6,0xc5};
    sm9_fn_from_bytes(a, a3);
    sm9_fn_from_bytes(b, b3);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c3, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a4[32] = {0x13,0x83,0xa0,0xfd,0xd9,0x5b,0x61,0xbf,0x1a,0x32,0xb6,0x5c,0xa0,0x47,0x6c,0xb9,0xdb,0x8e,0x32,0x46,0x46,0xa4,0xed,0x4c,0x37,0x17,0xb0,0x0a,0xfa,0xa5,0x37,0xfb};
    static std::uint8_t b4[32] = {0x06,0x1f,0x04,0x27,0xd4,0xc6,0xac,0x46,0xbb,0x5f,0xd4,0x6b,0x81,0x79,0xba,0x21,0x28,0x41,0xeb,0xa7,0x36,0x80,0x35,0x6d,0x7e,0xd4,0x1d,0x0c,0x6f,0xae,0xb4,0x2b};
    static std::uint8_t c4[32] = {0x49,0xbb,0x77,0x9e,0xb1,0x5a,0xf3,0x74,0xe2,0x67,0xde,0xef,0xac,0x2d,0xdf,0xf0,0x13,0x86,0xcc,0x57,0x16,0x79,0xa7,0x5f,0x8f,0x20,0x24,0x9a,0x2b,0xf1,0x26,0xc6};
    sm9_fn_from_bytes(a, a4);
    sm9_fn_from_bytes(b, b4);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c4, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a5[32] = {0x27,0xf4,0xaa,0x67,0xe8,0x6d,0xe9,0x25,0x58,0x02,0x6b,0xc0,0x7a,0x13,0x32,0xba,0x88,0x29,0x45,0xc5,0x12,0xce,0x6c,0x14,0x1f,0x75,0xce,0xee,0xa0,0x6c,0x94,0x29};
    static std::uint8_t b5[32] = {0x58,0x53,0x34,0xc9,0x3a,0xf3,0x55,0x67,0x4f,0x8e,0x98,0xd6,0x88,0x2d,0x73,0x69,0x0c,0x53,0xba,0x44,0xd8,0xb7,0x57,0x31,0xa8,0x4e,0xe0,0xed,0xfb,0x87,0x2e,0x16};
    static std::uint8_t c5[32] = {0x03,0xf9,0x94,0xdc,0xa7,0xa8,0x5b,0x83,0xa2,0xad,0x0d,0x02,0x67,0xf1,0x98,0xae,0x78,0x3b,0x4f,0x3b,0x6d,0x86,0xcc,0x58,0x6d,0xe3,0xf0,0xf5,0x11,0xae,0x5e,0x2a};
    sm9_fn_from_bytes(a, a5);
    sm9_fn_from_bytes(b, b5);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c5, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a6[32] = {0x9b,0x75,0xc8,0xab,0x52,0x5a,0x85,0xb0,0x54,0x9d,0x8b,0x53,0x39,0x7d,0x4c,0xd8,0xac,0xbd,0x09,0x9f,0x65,0x74,0x25,0xbd,0x61,0xec,0xcd,0xb9,0xf6,0x2f,0x67,0xa7};
    static std::uint8_t b6[32] = {0x3c,0x1c,0xff,0x2a,0x53,0x58,0xc6,0x65,0x7f,0x96,0x84,0x3b,0x9c,0xca,0x4d,0x1c,0xcf,0x0c,0x83,0xc2,0xd2,0x95,0xfb,0x67,0x0a,0x02,0xcb,0x03,0x1e,0x55,0x56,0x3d};
    static std::uint8_t c6[32] = {0x10,0xb3,0x7c,0xef,0x7b,0xdf,0x13,0x55,0x89,0x4b,0xdb,0xe7,0x25,0x5a,0x49,0xd0,0x3e,0xd2,0x57,0x8c,0x2c,0x50,0xd6,0x40,0xf7,0x95,0x00,0xc6,0x6e,0xd0,0x3a,0x2e};
    sm9_fn_from_bytes(a, a6);
    sm9_fn_from_bytes(b, b6);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c6, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a7[32] = {0x0b,0x43,0x52,0xcf,0x54,0x50,0xc3,0x67,0x90,0xfa,0xad,0x90,0x2a,0xf3,0xdb,0x60,0xc8,0x7b,0x4d,0x75,0xf3,0xe9,0x9e,0x70,0x70,0x2e,0x90,0x74,0x01,0x91,0x2f,0x4f};
    static std::uint8_t b7[32] = {0x22,0x6c,0x14,0x42,0x35,0x89,0xa2,0x84,0xe1,0x72,0x50,0x95,0x4e,0x6b,0x4c,0x3f,0x20,0x5d,0x07,0x08,0xb2,0x53,0xd9,0xde,0x92,0xb3,0x46,0x1e,0x45,0x2e,0x62,0x1d};
    static std::uint8_t c7[32] = {0x75,0xb3,0xb2,0x84,0x41,0xa2,0x24,0x9a,0xaa,0x06,0x0d,0x9f,0xe0,0x4b,0x5b,0x30,0xbe,0x6b,0x9f,0x71,0x0c,0xa0,0x1b,0xd0,0x9c,0x73,0x99,0x49,0x49,0x7c,0xf7,0xf7};
    sm9_fn_from_bytes(a, a7);
    sm9_fn_from_bytes(b, b7);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c7, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a8[32] = {0x60,0xe5,0x76,0x3d,0xde,0x5e,0x20,0xa2,0x1b,0x64,0x3b,0x46,0xe7,0x95,0x37,0xf2,0x4e,0x49,0x62,0xb2,0xba,0x7d,0x3c,0xf6,0xe3,0xb1,0x93,0x40,0xe5,0x0e,0x69,0x1c};
    static std::uint8_t b8[32] = {0x2c,0x5d,0x40,0x5d,0x84,0xb5,0x31,0xc0,0xeb,0xbb,0x2a,0xe8,0x4b,0x69,0x9a,0xac,0xf0,0x36,0x23,0xeb,0x88,0xab,0x06,0xfc,0xbf,0xb1,0x00,0x27,0xdc,0xf0,0x85,0x04};
    static std::uint8_t c8[32] = {0x35,0x0d,0xe1,0x4c,0x07,0xc5,0xcc,0xde,0x9d,0xdb,0xdc,0x05,0x66,0x89,0xbe,0x7a,0xfc,0x8e,0x97,0x8c,0x23,0x5b,0xb8,0x13,0xb4,0x3b,0x9b,0x37,0x76,0xd5,0xe7,0x80};
    sm9_fn_from_bytes(a, a8);
    sm9_fn_from_bytes(b, b8);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c8, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a9[32] = {0x6c,0x78,0xa5,0x34,0x42,0xec,0xe2,0xb8,0xfe,0x64,0xca,0x5b,0xc1,0xe6,0x5a,0x0d,0x2a,0x6c,0x71,0x40,0x9e,0xda,0xa4,0x4e,0x19,0xee,0xd1,0x14,0x04,0xf4,0x67,0xb7};
    static std::uint8_t b9[32] = {0x87,0x07,0x58,0xd9,0x21,0x58,0xaf,0x22,0x2c,0x21,0xbb,0xa6,0x28,0x4f,0x27,0xa0,0x71,0xbf,0x76,0x70,0x04,0x69,0x4b,0xca,0x79,0x2a,0x2f,0xcc,0xe0,0x8a,0x50,0x7d};
    static std::uint8_t c9[32] = {0x06,0x89,0xb1,0xbb,0xf9,0x4d,0xaf,0x61,0x18,0x9a,0x62,0x9d,0x39,0x59,0x8c,0x97,0x5f,0x82,0xf5,0xb5,0x88,0xd3,0x79,0x3f,0x4d,0xaa,0xee,0xab,0x58,0x87,0xdc,0x97};
    sm9_fn_from_bytes(a, a9);
    sm9_fn_from_bytes(b, b9);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c9, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a10[32] = {0x0d,0x07,0x13,0xd3,0xb4,0x84,0x7c,0x2c,0x50,0x72,0xd5,0x9f,0x36,0x3a,0x01,0x38,0x40,0x2d,0xf7,0x45,0xc1,0x83,0x74,0x47,0xc5,0x1a,0xd0,0x25,0x41,0xae,0xc9,0xea};
    static std::uint8_t b10[32] = {0x82,0xda,0xe7,0xab,0x53,0xad,0x3c,0x3e,0xdc,0x7e,0x23,0x51,0x24,0x6c,0x6f,0x8b,0xb3,0x02,0x44,0xf1,0x16,0x88,0xbf,0x8b,0xf8,0xcd,0x55,0x46,0x17,0x32,0xe6,0x07};
    static std::uint8_t c10[32] = {0x12,0x1a,0x36,0x53,0xf4,0x38,0xc5,0xb0,0xd8,0x25,0x0c,0x79,0x12,0xeb,0xed,0x41,0xd0,0xfd,0x67,0x70,0x13,0x53,0xf1,0x6f,0xc1,0x19,0x0d,0xaa,0xe7,0xd7,0x1a,0x5d};
    sm9_fn_from_bytes(a, a10);
    sm9_fn_from_bytes(b, b10);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c10, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a11[32] = {0x0d,0x61,0x24,0x9d,0x55,0x1a,0x5a,0xdd,0x01,0x90,0x2a,0x0d,0xee,0xab,0x08,0x6d,0x7f,0xe6,0xd6,0xab,0xd3,0x5f,0xc1,0x90,0xa0,0x9b,0x70,0x03,0x19,0x6f,0x0f,0x8a};
    static std::uint8_t b11[32] = {0x47,0x92,0x65,0xe9,0xbc,0x4e,0xe0,0xf2,0x16,0xb2,0x48,0x06,0x27,0xfd,0xc4,0xca,0xfb,0xaa,0x05,0x0c,0x51,0x54,0xc7,0xf8,0xe8,0x01,0xc0,0xc4,0x24,0x8b,0xef,0x86};
    static std::uint8_t c11[32] = {0x4f,0x71,0x73,0x6c,0xc4,0x8b,0x74,0xc8,0xb6,0xd7,0xc7,0x15,0x3a,0xb3,0x1f,0x75,0x15,0x93,0x08,0x0e,0xb2,0xa4,0x3d,0x27,0xe9,0x28,0xd8,0xcc,0xe0,0xb6,0xde,0x3b};
    sm9_fn_from_bytes(a, a11);
    sm9_fn_from_bytes(b, b11);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c11, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a12[32] = {0x3f,0xba,0xe0,0x2a,0x02,0x60,0x2e,0x72,0x03,0x67,0x77,0xee,0x74,0x36,0x14,0x04,0xcf,0x9b,0x19,0x91,0x39,0xf5,0x84,0x65,0xcf,0x71,0xde,0x6e,0xa4,0xa2,0x9d,0xb6};
    static std::uint8_t b12[32] = {0x9d,0xc5,0x3f,0x20,0x38,0x36,0x1a,0xd6,0x89,0x91,0xa7,0x60,0xe7,0x4b,0x2b,0xf6,0x4f,0x45,0xe1,0x17,0xe4,0x3e,0x47,0x5d,0x6b,0x43,0xee,0x3b,0x61,0xb0,0xf5,0x7b};
    static std::uint8_t c12[32] = {0x59,0xcb,0x14,0x99,0x10,0x46,0xc0,0x1f,0x6f,0xda,0xfc,0x06,0x28,0x8b,0xef,0xed,0x88,0x9d,0x9a,0x3b,0x57,0xf0,0xd6,0x4a,0x8f,0xe8,0xf1,0x76,0xda,0x19,0x28,0x52};
    sm9_fn_from_bytes(a, a12);
    sm9_fn_from_bytes(b, b12);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c12, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a13[32] = {0x21,0xc4,0x75,0xde,0x4d,0x8b,0x53,0x86,0xe8,0xa8,0xd9,0x08,0x83,0x3b,0x01,0xed,0x54,0xf7,0x7b,0x68,0x8e,0xc5,0x62,0x71,0x51,0x04,0x68,0xda,0x36,0x25,0xf3,0x99};
    static std::uint8_t b13[32] = {0x3b,0x8f,0xa9,0x76,0xb9,0xf1,0xd7,0x7d,0x02,0x20,0x36,0xc3,0xbc,0x46,0x51,0xf9,0x84,0xb7,0xc0,0xba,0xf7,0x73,0x8f,0x07,0x98,0x9d,0x74,0x08,0x97,0x8a,0x06,0x62};
    static std::uint8_t c13[32] = {0x84,0x67,0xb0,0x38,0x11,0x1e,0x77,0x41,0x1b,0xa6,0xcd,0xf1,0x08,0xef,0x8c,0x1c,0x5b,0x30,0x7e,0x59,0x2e,0x0c,0xff,0x9a,0x00,0x60,0xd8,0x2f,0x5f,0x5c,0xcc,0x5b};
    sm9_fn_from_bytes(a, a13);
    sm9_fn_from_bytes(b, b13);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c13, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a14[32] = {0xa4,0x30,0xe8,0x2c,0x70,0xd7,0x53,0x3b,0xe3,0x7a,0xe8,0x25,0x51,0x82,0xc3,0xcf,0xca,0xa0,0x45,0x0c,0xc9,0xd3,0x73,0x63,0x20,0x92,0xe8,0xeb,0x19,0xee,0x51,0x2c};
    static std::uint8_t b14[32] = {0x23,0xad,0x1c,0x03,0x42,0xef,0x4e,0x85,0x43,0xaa,0x48,0x8a,0x79,0x0c,0x4b,0x4b,0x76,0x82,0x65,0x1b,0xdf,0x5c,0xa0,0x57,0x6d,0x85,0x88,0x81,0x9e,0xdb,0xeb,0x10};
    static std::uint8_t c14[32] = {0x19,0x5d,0x4b,0xa6,0xc0,0x69,0x6b,0xca,0x66,0x5c,0x2b,0xbf,0x83,0x43,0xaa,0x31,0xba,0x36,0x6e,0x26,0x4a,0xf2,0xb2,0xd0,0x1c,0x33,0xf9,0x59,0x75,0xe3,0xeb,0xc8};
    sm9_fn_from_bytes(a, a14);
    sm9_fn_from_bytes(b, b14);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c14, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a15[32] = {0x30,0x26,0xd0,0xf9,0x3c,0x6f,0x13,0x2d,0xda,0x29,0xd6,0xd3,0xb6,0xc7,0x1e,0x79,0xe0,0x29,0xd7,0xee,0xc6,0x86,0xc0,0xcd,0x2f,0xae,0x77,0x65,0xc5,0xa1,0xa3,0xbb};
    static std::uint8_t b15[32] = {0x36,0x56,0x61,0x6c,0x3c,0x03,0x71,0x26,0x54,0xf5,0x42,0x97,0x76,0xc9,0xa2,0xe8,0x24,0xbd,0xaf,0x32,0xae,0x07,0xd7,0x8d,0x64,0x57,0x0d,0xa9,0xe2,0x46,0xb2,0x57};
    static std::uint8_t c15[32] = {0x0b,0xeb,0x93,0x8a,0x2d,0x1e,0x3c,0xca,0xa7,0x7f,0x72,0xe2,0x1c,0x4b,0x9c,0x94,0x2d,0x50,0x1b,0xbc,0xd7,0x1e,0xf3,0x28,0x94,0x00,0x1a,0x77,0x54,0x94,0xef,0x58};
    sm9_fn_from_bytes(a, a15);
    sm9_fn_from_bytes(b, b15);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c15, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a16[32] = {0x08,0x54,0x59,0xda,0xbb,0x01,0x5c,0x51,0xb1,0x56,0xdf,0x23,0x72,0x81,0xae,0x74,0xef,0x54,0x31,0xbc,0xb7,0x03,0xb6,0x1a,0xa2,0xe0,0x5b,0x05,0x9c,0xe6,0xbb,0x8e};
    static std::uint8_t b16[32] = {0x47,0x61,0x47,0xfd,0x00,0x74,0xb7,0x62,0x10,0xca,0x41,0x78,0x1c,0x17,0x18,0x00,0xad,0xf8,0x0e,0x9c,0xe0,0xfd,0xfd,0x2d,0xd7,0x51,0x31,0x8b,0x54,0x07,0xf3,0xe7};
    static std::uint8_t c16[32] = {0x8b,0x17,0x1c,0xaa,0x33,0xba,0x91,0x51,0x47,0xb7,0x71,0xd8,0x30,0xc1,0xe8,0x6e,0x60,0x69,0x2a,0x97,0xe3,0x0c,0xb1,0x1e,0xea,0x1e,0xf3,0x1f,0x8e,0x14,0x0e,0xbe};
    sm9_fn_from_bytes(a, a16);
    sm9_fn_from_bytes(b, b16);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c16, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a17[32] = {0x27,0xb3,0xbe,0x8a,0x5a,0x3a,0xe9,0xea,0x91,0x16,0xcb,0xfa,0x91,0xb2,0xe2,0xb8,0x7a,0x85,0x13,0x8e,0xf9,0xb7,0x32,0xde,0xba,0xae,0x1c,0x37,0x41,0xb7,0x40,0x63};
    static std::uint8_t b17[32] = {0x36,0xaa,0x5f,0x79,0x3c,0xba,0xad,0xdb,0x3e,0x4a,0xf3,0x03,0xf2,0x25,0xdb,0x94,0x1b,0x63,0x25,0xa7,0xa6,0x80,0x48,0x32,0x52,0x24,0xdf,0x48,0x4b,0xc2,0x53,0x24};
    static std::uint8_t c17[32] = {0x8d,0xd8,0xdc,0xe6,0xa9,0x9a,0xa7,0xe2,0x65,0x5b,0x2d,0xd3,0x9a,0x49,0x82,0x22,0x32,0x48,0xb3,0x96,0x8e,0x07,0x8c,0x69,0x7c,0x42,0xf7,0x0b,0xf0,0x7b,0x2e,0x85};
    sm9_fn_from_bytes(a, a17);
    sm9_fn_from_bytes(b, b17);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c17, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a18[32] = {0xaa,0x58,0x71,0xaa,0x52,0x35,0xaa,0x97,0xd3,0xcf,0xb9,0xa5,0x28,0xb1,0x7e,0x7d,0xc7,0xfb,0x64,0xe3,0xc0,0x63,0x05,0xbb,0x83,0x42,0xfc,0x4c,0x7d,0x61,0x36,0xcb};
    static std::uint8_t b18[32] = {0x69,0x00,0x81,0x4d,0x64,0xa6,0x69,0x56,0xfc,0x9f,0x51,0x3d,0x9d,0x64,0xb5,0xda,0x77,0x9a,0x2e,0xd8,0x09,0x18,0xff,0x39,0x6f,0xa8,0xa6,0xd3,0x30,0x73,0x87,0x9b};
    static std::uint8_t c18[32] = {0x88,0x90,0x72,0xef,0x71,0x3d,0x57,0x74,0x68,0x8e,0x6d,0x2b,0xe8,0xc2,0x76,0x31,0xbc,0x9a,0xce,0xd7,0x43,0x5a,0x53,0x48,0x26,0xbb,0x67,0xd1,0xaa,0x5b,0xdf,0x79};
    sm9_fn_from_bytes(a, a18);
    sm9_fn_from_bytes(b, b18);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c18, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a19[32] = {0x22,0x37,0x42,0x60,0x62,0x1b,0xe5,0xa4,0xf5,0x09,0xe7,0x70,0xb1,0x41,0xd4,0x96,0x5d,0x8b,0xfb,0x78,0xd5,0xfd,0x37,0x4e,0x0b,0xf6,0x2f,0x93,0x4b,0x20,0x51,0xfd};
    static std::uint8_t b19[32] = {0x20,0x46,0xe2,0x91,0xbe,0xc8,0x07,0xea,0xb3,0xe1,0xed,0xf4,0xe9,0xb9,0xe5,0x5f,0x4f,0x72,0x0e,0x47,0x4e,0xde,0x80,0xb6,0x49,0x0d,0xd9,0x01,0x7d,0xd8,0xc3,0xde};
    static std::uint8_t c19[32] = {0xb1,0x2f,0x89,0x3b,0x96,0x2c,0x95,0x45,0xa7,0x03,0x78,0x97,0x36,0x28,0x87,0xdc,0x09,0x1f,0xba,0x78,0x24,0xa8,0xce,0x11,0x6a,0x3d,0xe4,0xac,0x5d,0xdd,0xe0,0xd6};
    sm9_fn_from_bytes(a, a19);
    sm9_fn_from_bytes(b, b19);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c19, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a20[32] = {0x58,0xe7,0x07,0x76,0xaf,0x3f,0xcf,0x2a,0x32,0x8c,0x08,0x1c,0x3e,0x08,0xdf,0x96,0xc3,0x0b,0x4a,0xe1,0x57,0x48,0x6d,0x23,0x1f,0x90,0xa7,0xf1,0x7b,0x8a,0x66,0xca};
    static std::uint8_t b20[32] = {0x10,0x38,0x77,0x9a,0xeb,0x7a,0xdb,0xbc,0xb8,0xb7,0x8c,0x1d,0x7e,0xbe,0x36,0xea,0xc8,0x18,0xb0,0xed,0xb2,0x6e,0x98,0x01,0xd0,0x66,0xdf,0xe4,0x78,0x2b,0xb1,0x20};
    static std::uint8_t c20[32] = {0x8e,0x2a,0x33,0x55,0xcf,0x40,0x02,0x13,0x3c,0xb7,0x3e,0x2e,0xff,0x36,0x24,0xb5,0x26,0x62,0x82,0x57,0xb0,0xde,0x46,0x85,0x85,0x48,0x74,0xc4,0xf7,0x80,0xaf,0x7b};
    sm9_fn_from_bytes(a, a20);
    sm9_fn_from_bytes(b, b20);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c20, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a21[32] = {0x42,0x95,0x61,0x76,0x26,0x7c,0x39,0xd1,0x3d,0x2b,0x68,0x6f,0x31,0x11,0xb5,0x78,0xd4,0xdf,0x47,0x8d,0x6a,0x6f,0x34,0x5a,0x55,0xa7,0xf2,0xdf,0x40,0xf3,0xd5,0x9c};
    static std::uint8_t b21[32] = {0x24,0x41,0xfa,0x3d,0x19,0x76,0xdc,0xeb,0xa7,0x81,0x84,0x59,0xd6,0x79,0x37,0x4c,0x0d,0xda,0x3e,0xde,0xfc,0xde,0x49,0xce,0x87,0xee,0xec,0x51,0xe6,0x03,0x45,0x35};
    static std::uint8_t c21[32] = {0x60,0x08,0xe4,0x45,0xe8,0x80,0x4c,0x61,0x5b,0x3c,0x21,0x5a,0x17,0xe9,0xfa,0x8e,0x3e,0x50,0x66,0x4f,0x22,0xfc,0x7f,0x21,0xdc,0x1d,0x77,0x1e,0x78,0xc0,0x3e,0x72};
    sm9_fn_from_bytes(a, a21);
    sm9_fn_from_bytes(b, b21);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c21, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a22[32] = {0x39,0x2a,0x0d,0xda,0x9b,0xa9,0x4c,0x25,0xda,0xcd,0xc5,0x0d,0x4b,0xa2,0xdd,0x3e,0xde,0x91,0xd3,0xbe,0xaf,0xfd,0x27,0x4c,0x45,0xd0,0x92,0x43,0x86,0x5e,0x99,0xcb};
    static std::uint8_t b22[32] = {0xad,0x33,0x96,0x21,0xf4,0x3e,0x2e,0x23,0x8d,0xb8,0x38,0x62,0x35,0xdd,0xda,0x35,0x41,0xba,0xe7,0xb9,0x7e,0xdd,0x2a,0xf3,0x10,0x65,0x49,0xa9,0xbc,0x45,0x4c,0x7a};
    static std::uint8_t c22[32] = {0x07,0xb5,0x44,0x28,0x4d,0x19,0x22,0xce,0x6d,0x5e,0x5a,0x65,0x2e,0x16,0xb0,0xc6,0x82,0x3e,0x0c,0x04,0x6e,0x6e,0xfd,0xdf,0xbf,0x0d,0xca,0x1d,0xd9,0x06,0x8f,0x5f};
    sm9_fn_from_bytes(a, a22);
    sm9_fn_from_bytes(b, b22);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c22, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a23[32] = {0x72,0xcb,0x41,0xff,0xef,0x6b,0xcf,0x5f,0x07,0xfd,0x37,0x4b,0x7f,0x7e,0xf9,0xd1,0xc9,0x3b,0x52,0x10,0x8e,0xe3,0xd0,0x9d,0x28,0x87,0x2c,0x8d,0x18,0xf3,0x32,0x05};
    static std::uint8_t b23[32] = {0x47,0x08,0x4d,0xe8,0x2c,0x47,0xea,0x33,0xb3,0x6d,0x22,0x8b,0xe1,0x51,0xa2,0xd7,0x43,0xa1,0x00,0x22,0x7e,0x29,0x7c,0x28,0x04,0x58,0x29,0xc4,0x83,0xb8,0xba,0x8a};
    static std::uint8_t c23[32] = {0x05,0x92,0xb7,0x7c,0x40,0x37,0x4d,0x6d,0x12,0xa0,0xb8,0x62,0x23,0xd1,0x5d,0xb6,0x14,0x61,0x92,0xab,0x03,0x6f,0xb0,0x3f,0x2d,0x4d,0xd6,0xf2,0x46,0x4f,0xbb,0xfe};
    sm9_fn_from_bytes(a, a23);
    sm9_fn_from_bytes(b, b23);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c23, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a24[32] = {0x21,0xf6,0x7d,0x2c,0x86,0x34,0x28,0xf1,0xac,0xa4,0x14,0x2f,0xe4,0x2f,0x18,0x33,0xe4,0xf4,0xc7,0xa0,0xcb,0x85,0xb7,0xb3,0x3c,0xb0,0x0c,0xf3,0x89,0xbc,0x9a,0x90};
    static std::uint8_t b24[32] = {0x48,0xd3,0x37,0x12,0xde,0xf7,0x77,0x9a,0xaf,0x63,0xd8,0xaa,0x79,0x77,0x07,0x0b,0xb6,0x80,0x9e,0x3b,0xd3,0x55,0xbb,0x94,0x1e,0xec,0x11,0xcb,0x78,0x5b,0x79,0x6f};
    static std::uint8_t c24[32] = {0x12,0x15,0x67,0x64,0x7b,0x68,0x34,0xac,0x21,0xf7,0xa8,0x2e,0x17,0x7e,0x2e,0x98,0x4d,0xdb,0x1e,0xd6,0x46,0xd8,0x04,0xff,0xa0,0xdf,0xac,0x33,0x27,0x7f,0xad,0x64};
    sm9_fn_from_bytes(a, a24);
    sm9_fn_from_bytes(b, b24);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c24, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a25[32] = {0x48,0x82,0x0a,0xb5,0x29,0x8a,0x32,0xa6,0xec,0x2d,0x1c,0x66,0x86,0xbf,0x17,0x40,0x1f,0xeb,0xfb,0x14,0x65,0xc9,0xb3,0xf6,0x81,0xa2,0xdc,0x21,0x14,0x75,0x7d,0x53};
    static std::uint8_t b25[32] = {0x10,0x66,0xc3,0x7c,0xea,0xf4,0x0c,0x58,0x8d,0x02,0xa6,0xc7,0xaf,0x71,0xd2,0xe1,0x0b,0xd1,0xbd,0xde,0xe3,0x91,0xfd,0x51,0xf4,0xca,0x92,0xf0,0x3e,0xcf,0x64,0x74};
    static std::uint8_t c25[32] = {0xa2,0xad,0x0f,0xba,0xea,0x70,0x77,0x70,0x21,0x9c,0x61,0xbb,0xed,0x03,0xf0,0xba,0x04,0xd4,0xdc,0x4a,0xc1,0xfc,0xe5,0xa4,0x32,0xcd,0x3d,0x69,0xd3,0xeb,0xb5,0xbd};
    sm9_fn_from_bytes(a, a25);
    sm9_fn_from_bytes(b, b25);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c25, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a26[32] = {0xa2,0xbc,0xd3,0x4d,0x87,0x75,0xb3,0x0a,0xec,0x96,0x70,0x4b,0xae,0x97,0xb9,0x0e,0x9b,0x92,0xf7,0x44,0x5d,0xd9,0x27,0xfd,0x88,0x59,0x0d,0x4b,0xf2,0xa8,0xda,0xab};
    static std::uint8_t b26[32] = {0x81,0xb9,0x0e,0x06,0xc4,0xba,0x58,0x55,0x6e,0x3a,0x72,0x9e,0x7d,0x3b,0xdc,0x65,0x72,0x3d,0xbd,0x8b,0x01,0x95,0x10,0x88,0x81,0x53,0x90,0x87,0xfb,0x67,0x86,0xb1};
    static std::uint8_t c26[32] = {0x13,0x62,0x4b,0xad,0xa4,0xac,0xe9,0xcf,0x2d,0xdd,0xcf,0x5e,0x03,0x85,0x6c,0x83,0x9c,0xf5,0x20,0xd8,0xd2,0xf4,0x95,0x74,0x60,0xa6,0x08,0x05,0x40,0x10,0x1e,0x43};
    sm9_fn_from_bytes(a, a26);
    sm9_fn_from_bytes(b, b26);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c26, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a27[32] = {0x54,0xfe,0x28,0xb6,0x70,0x28,0x63,0x80,0x81,0xdf,0xd0,0x56,0x6a,0x02,0xf6,0xa9,0x9b,0x20,0x87,0xef,0x40,0x4c,0x1c,0xad,0x08,0x78,0x1b,0x57,0x95,0x89,0x8b,0x18};
    static std::uint8_t b27[32] = {0x05,0x88,0xd3,0x96,0xbb,0xf2,0x77,0x97,0x7c,0x9c,0x83,0x0f,0x61,0xf6,0x7e,0x70,0x34,0xc4,0xfb,0x4e,0x08,0xb5,0x08,0xdd,0xc7,0xc1,0x75,0xda,0x64,0x5c,0x5e,0x3b};
    static std::uint8_t c27[32] = {0x8b,0xc9,0x42,0xae,0x0a,0xac,0xa2,0xd8,0x7d,0x80,0x53,0xf8,0x4b,0x39,0x31,0x2e,0x17,0xa0,0x4e,0x52,0xd6,0x4d,0xe3,0xba,0xc4,0xf7,0x20,0x71,0xe1,0x07,0x32,0xbf};
    sm9_fn_from_bytes(a, a27);
    sm9_fn_from_bytes(b, b27);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c27, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a28[32] = {0x1b,0xdc,0x45,0xd4,0x37,0xbc,0x0b,0x70,0x25,0x04,0x9c,0xb6,0x95,0x65,0xc1,0xcb,0xdd,0x94,0xfd,0x9b,0xfa,0xe5,0x47,0xf2,0x5f,0x1f,0x5b,0xf1,0x7b,0xf6,0xae,0x43};
    static std::uint8_t b28[32] = {0x44,0xa4,0x62,0x89,0x02,0xc3,0x0e,0x7e,0xc9,0x6e,0x15,0xd2,0x23,0xb7,0xf8,0xba,0xc7,0x04,0x16,0x14,0x56,0xe0,0x9b,0x12,0x91,0x6d,0xf8,0x95,0x6c,0x58,0x4c,0xb9};
    static std::uint8_t c28[32] = {0x4f,0x48,0xc7,0xa2,0x3b,0xad,0x97,0xd1,0x1c,0x71,0x95,0x70,0xc1,0x14,0x15,0x71,0xa2,0x5e,0xc9,0xbe,0xa9,0x96,0xd5,0xcd,0x25,0xd1,0xe3,0xc6,0x67,0xf2,0x87,0x77};
    sm9_fn_from_bytes(a, a28);
    sm9_fn_from_bytes(b, b28);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c28, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a29[32] = {0x3d,0xba,0x70,0x85,0x94,0x9a,0x4b,0x1f,0x93,0x77,0x37,0x9b,0x0a,0xe8,0x8a,0xb2,0x26,0xea,0xe7,0x0d,0xa8,0x5c,0xcd,0xe3,0x7d,0x39,0xe1,0x00,0x72,0x5c,0xf6,0x3f};
    static std::uint8_t b29[32] = {0x42,0x3d,0x25,0x80,0x70,0x62,0x5d,0xc4,0x11,0xaf,0x24,0x56,0x93,0x3a,0x4a,0x06,0xda,0x97,0x3f,0xd8,0x3b,0x2b,0x7b,0x6a,0x98,0xc8,0x23,0xc2,0xae,0x15,0xf9,0x47};
    static std::uint8_t c29[32] = {0x8a,0xb9,0x1c,0x19,0x74,0xfd,0x7e,0xff,0x80,0x3c,0xfc,0xe1,0xc6,0xbd,0x5b,0x09,0xee,0x75,0x57,0x81,0xf7,0xb6,0x25,0x42,0xd8,0xc4,0xee,0xd4,0x71,0x48,0x9a,0x91};
    sm9_fn_from_bytes(a, a29);
    sm9_fn_from_bytes(b, b29);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c29, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a30[32] = {0x6f,0xd1,0x61,0xc9,0x35,0x79,0x1b,0x33,0x5a,0x79,0x84,0xf7,0x85,0xc2,0x5f,0x61,0xd4,0xf5,0xa4,0x66,0x49,0x9d,0x2a,0x6e,0x1a,0x7a,0x85,0x23,0xcb,0xcb,0xd5,0x45};
    static std::uint8_t b30[32] = {0x0b,0x82,0x21,0x1d,0x4f,0x0e,0x44,0x22,0xd1,0xef,0x0b,0xb6,0x64,0x9d,0x56,0xef,0xac,0x88,0xcf,0x0e,0x4d,0x6c,0xdd,0x4c,0xdb,0x7e,0xde,0xd9,0x29,0xc0,0x27,0x7d};
    static std::uint8_t c30[32] = {0x58,0xae,0xb4,0x56,0x30,0x7c,0xca,0xa3,0x7a,0xd0,0x05,0x57,0x62,0x47,0x99,0x5b,0x5e,0x16,0xf3,0xae,0x9f,0xd7,0x09,0x39,0x81,0x3e,0x13,0x8e,0xb9,0x52,0x8b,0xf5};
    sm9_fn_from_bytes(a, a30);
    sm9_fn_from_bytes(b, b30);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c30, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a31[32] = {0x80,0x75,0xa2,0xc8,0xbe,0x94,0xff,0x7b,0x8c,0xf2,0x0d,0x72,0xef,0x6a,0xd5,0x03,0xcd,0x5b,0xce,0x44,0x3c,0x74,0xb0,0x2a,0x03,0xe9,0x28,0x4d,0x45,0x65,0xfb,0xa1};
    static std::uint8_t b31[32] = {0x84,0xf2,0x3e,0xe6,0xec,0x84,0x49,0xb2,0x19,0x8f,0x0e,0xb9,0x39,0xc5,0xb4,0xa9,0xbe,0xb9,0x09,0x4c,0x27,0xc5,0xa5,0x13,0x64,0xfd,0xc9,0xa6,0x00,0x4a,0x17,0xbf};
    static std::uint8_t c31[32] = {0x86,0x4c,0xd2,0xd4,0xaa,0x6b,0x1b,0x0b,0x7d,0x0d,0xd1,0x1a,0x13,0x01,0x34,0x6a,0xfc,0xb2,0x06,0x18,0x7c,0x8c,0xf6,0x04,0x09,0x26,0x0d,0x6a,0xff,0x3b,0xc7,0x75};
    sm9_fn_from_bytes(a, a31);
    sm9_fn_from_bytes(b, b31);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c31, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a32[32] = {0x14,0x13,0x04,0x3c,0x9b,0x3c,0x8d,0x18,0x00,0x55,0x9a,0x35,0x58,0x51,0xad,0x43,0x13,0x3c,0x8d,0x21,0x2c,0x83,0xd0,0x70,0xef,0x11,0x7b,0xd3,0x03,0x4a,0x0b,0xa3};
    static std::uint8_t b32[32] = {0x8d,0x0e,0x4f,0x0e,0xa4,0x1f,0xeb,0xde,0x44,0x7c,0x38,0xdd,0x6d,0x36,0x12,0x8a,0x64,0xac,0xf6,0xe6,0x24,0xbb,0x73,0x21,0x71,0x94,0xa7,0x9d,0xf5,0xde,0x0f,0xd6};
    static std::uint8_t c32[32] = {0x85,0x26,0x29,0x6a,0xc5,0xbc,0x14,0x58,0x32,0xf9,0x20,0x72,0xd0,0x7d,0xbc,0x1e,0x20,0x19,0x64,0x7e,0x6d,0xa8,0x6e,0xef,0xa6,0x75,0x35,0x38,0x4b,0x1e,0x31,0x9a};
    sm9_fn_from_bytes(a, a32);
    sm9_fn_from_bytes(b, b32);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c32, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a33[32] = {0x2b,0xc6,0xa8,0x45,0xca,0xbf,0x6d,0x8e,0xba,0x4f,0xa0,0x47,0x92,0x09,0x64,0xc6,0x8e,0x00,0xa2,0x33,0xd3,0xb0,0x56,0x09,0xe3,0x06,0xad,0xa7,0xc5,0x34,0x59,0xc7};
    static std::uint8_t b33[32] = {0x18,0xce,0xe1,0x62,0x10,0x61,0x63,0xdf,0x01,0xe7,0xd0,0xc4,0xdc,0xbf,0xef,0xde,0x13,0x8b,0x9e,0x0c,0x9b,0xc9,0x3f,0x8f,0x51,0xe5,0x71,0x6b,0x5f,0x7a,0x94,0xab};
    static std::uint8_t c33[32] = {0x06,0x23,0xd4,0x26,0x97,0x17,0x51,0x38,0xf7,0x38,0x7d,0xe0,0xe1,0x8f,0xea,0xdb,0x05,0xb2,0x72,0x98,0x95,0xbd,0x83,0x52,0x34,0xfb,0xdb,0xef,0xc4,0x1b,0x54,0xb8};
    sm9_fn_from_bytes(a, a33);
    sm9_fn_from_bytes(b, b33);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c33, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a34[32] = {0x60,0x40,0x14,0x0d,0x71,0x25,0xa2,0xc1,0x2f,0xc0,0x17,0xf8,0x18,0xcf,0x58,0x9c,0x92,0xb2,0x9b,0x7d,0xd5,0xf4,0x82,0x91,0x2b,0x57,0x2c,0xe7,0x01,0x34,0xa5,0x1b};
    static std::uint8_t b34[32] = {0xae,0xeb,0x03,0x66,0x77,0x70,0x38,0x0a,0x65,0x57,0x65,0xa3,0xb2,0x5e,0x09,0xd4,0x27,0x72,0xc0,0x42,0x5e,0x33,0x14,0xcf,0x76,0x59,0x22,0xf4,0xdf,0xa9,0xe1,0xfc};
    static std::uint8_t c34[32] = {0x52,0x33,0x38,0x1b,0xf0,0x25,0x1d,0x8b,0x04,0x90,0x45,0xf7,0xd1,0x61,0x58,0x06,0x72,0x90,0xbd,0x2b,0x05,0x96,0x22,0x21,0xf2,0x3a,0xe8,0x5d,0xed,0x75,0x19,0x7d};
    sm9_fn_from_bytes(a, a34);
    sm9_fn_from_bytes(b, b34);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c34, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a35[32] = {0xb3,0x52,0xf8,0x21,0x96,0xbd,0xa3,0x08,0x39,0xbb,0xf5,0x4f,0x80,0x28,0x93,0x6e,0x4f,0xb6,0x6e,0xdd,0xd8,0xe3,0x4e,0x75,0x50,0xa5,0xf6,0xaa,0x3a,0xa0,0x1b,0x2f};
    static std::uint8_t b35[32] = {0x41,0xed,0x06,0x0e,0x8e,0xd6,0x92,0x7c,0xed,0x77,0x39,0x40,0x64,0xb3,0x9e,0x87,0x45,0xf9,0x6a,0xb4,0x70,0x41,0xbf,0xe5,0xa3,0xdd,0x8c,0x92,0x67,0x6e,0xbe,0x62};
    static std::uint8_t c35[32] = {0x9a,0x3e,0x9d,0xdf,0xfd,0x92,0x6f,0xb2,0x15,0x06,0x1d,0xb1,0xbb,0xb7,0x73,0xa3,0xe4,0x9f,0x08,0x40,0x60,0x5a,0x45,0xd3,0xd6,0xd1,0x17,0x49,0xfa,0xdc,0x24,0xfe};
    sm9_fn_from_bytes(a, a35);
    sm9_fn_from_bytes(b, b35);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c35, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a36[32] = {0x6e,0x1e,0x91,0x5c,0xf4,0xcc,0xdb,0xce,0xa3,0x48,0x6e,0x2d,0x92,0x39,0xb7,0x7f,0x17,0x98,0x88,0x01,0xdf,0x80,0x84,0xc8,0x4d,0xf5,0xa0,0xca,0xbb,0x1e,0x79,0x4b};
    static std::uint8_t b36[32] = {0xaa,0x18,0xc9,0xb7,0x10,0x0a,0x4a,0x04,0x84,0xb6,0xc8,0xdd,0xc7,0xca,0x4f,0x41,0xb7,0x6a,0x0e,0x37,0xed,0xcc,0xaa,0x6f,0x0a,0x86,0xcd,0x05,0x28,0x6f,0x80,0xcc};
    static std::uint8_t c36[32] = {0x61,0x20,0x1f,0x46,0xac,0x84,0xab,0xdf,0x96,0xaf,0x16,0x6c,0xff,0x40,0x95,0xcb,0xcc,0x71,0x8c,0xd3,0xec,0xdf,0xf5,0xa3,0x60,0x2e,0xa6,0xd7,0x14,0x35,0x96,0x44};
    sm9_fn_from_bytes(a, a36);
    sm9_fn_from_bytes(b, b36);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c36, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a37[32] = {0x23,0x2a,0x77,0x49,0x96,0xba,0x47,0x92,0x7d,0x53,0xa5,0x47,0x28,0xe9,0x51,0x54,0x71,0xa0,0x88,0x9c,0xa4,0x67,0xc5,0x36,0x53,0xe6,0x36,0xad,0xdd,0x13,0xeb,0xbd};
    static std::uint8_t b37[32] = {0x8e,0x5d,0x1c,0xfc,0x96,0xb1,0x22,0x91,0xdc,0x4c,0x44,0xf3,0xeb,0x8e,0xa4,0x62,0x19,0xdd,0x31,0x07,0x3f,0xf1,0x38,0xad,0x4f,0xa9,0xac,0xb3,0x70,0xb3,0x6a,0x7c};
    static std::uint8_t c37[32] = {0x15,0x52,0xfc,0x04,0x1f,0x5b,0xc9,0x41,0xeb,0xe8,0x8a,0xa7,0xf8,0xa3,0xd9,0x60,0xaa,0x24,0x50,0x38,0x9c,0x9b,0x79,0x87,0x11,0x78,0xbf,0x71,0xf9,0xfc,0x90,0x44};
    sm9_fn_from_bytes(a, a37);
    sm9_fn_from_bytes(b, b37);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c37, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a38[32] = {0x7d,0xa3,0x57,0x29,0x80,0x42,0xac,0xac,0xd2,0x0a,0x72,0x42,0xaf,0xa4,0x6a,0xe5,0xb1,0x42,0xc2,0x61,0x55,0x8b,0x42,0x99,0x9f,0x1c,0xb7,0x17,0x9f,0xab,0x61,0xd6};
    static std::uint8_t b38[32] = {0x25,0xd9,0x79,0x38,0x71,0x1d,0xa1,0x38,0x0d,0x32,0x6e,0x5d,0xf8,0x6a,0xb3,0x9b,0x43,0x9a,0x3d,0x7a,0x0d,0x4d,0xc8,0xa4,0x99,0xed,0xf9,0x8c,0x32,0x22,0xd8,0xf0};
    static std::uint8_t c38[32] = {0xa5,0x87,0xc4,0xfe,0x4c,0xfa,0x26,0x99,0xc0,0x0f,0x91,0x7d,0xa9,0x7c,0x58,0x7b,0x91,0xc5,0x50,0x06,0x8e,0xbd,0x0a,0x95,0x55,0xb7,0x92,0x3d,0xe8,0xc1,0x55,0x6c};
    sm9_fn_from_bytes(a, a38);
    sm9_fn_from_bytes(b, b38);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c38, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a39[32] = {0x6b,0x2d,0xc1,0x37,0x1c,0x71,0x9f,0x06,0x53,0x80,0xd0,0x93,0x81,0xfc,0x46,0x17,0x7a,0x6f,0xbe,0xbf,0x1f,0x0f,0xc3,0xa5,0x8b,0xd2,0x6d,0xfc,0xc9,0x82,0x41,0xf9};
    static std::uint8_t b39[32] = {0x27,0x4b,0x15,0xf1,0xd4,0x24,0x92,0x0e,0x94,0xf5,0xf1,0x45,0xcc,0x2b,0xe4,0xb0,0x0c,0x7d,0x19,0x8a,0x44,0x16,0x7c,0xb3,0x2e,0x10,0x53,0x75,0x64,0xb2,0xda,0x4d};
    static std::uint8_t c39[32] = {0x82,0x46,0xd5,0x7d,0xb1,0x91,0x7f,0xf9,0x8c,0xf4,0x31,0xe5,0x9b,0x9b,0xfd,0x8d,0x78,0x19,0xe9,0x67,0xb2,0x40,0x60,0x52,0xb0,0x4d,0x34,0x61,0x93,0x9a,0x9e,0x4b};
    sm9_fn_from_bytes(a, a39);
    sm9_fn_from_bytes(b, b39);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c39, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a40[32] = {0x81,0x53,0xdc,0xfc,0xfd,0x5b,0x69,0x9b,0xd7,0x8b,0xfa,0xae,0x5a,0xdc,0xcb,0x31,0x27,0xc4,0x2a,0xaf,0xce,0x0d,0xed,0x92,0x21,0x02,0x5a,0x90,0xd8,0xa7,0x67,0xcd};
    static std::uint8_t b40[32] = {0x2a,0xa3,0x2b,0xaf,0x53,0x5a,0x7f,0xe8,0xd6,0xf9,0x55,0xef,0x79,0xd7,0xc4,0xc9,0x86,0x43,0x1e,0xf1,0x80,0x09,0xd6,0x47,0x75,0xb2,0x00,0xaa,0x9d,0x09,0x73,0xc4};
    static std::uint8_t c40[32] = {0xa9,0x6f,0xc3,0x02,0x9d,0x0f,0x74,0x6e,0xfa,0xfe,0xfd,0x0c,0x86,0x1e,0xc8,0x25,0xe0,0x83,0xdc,0x96,0x2a,0xe9,0x31,0x5c,0x6f,0x06,0x8b,0xea,0xc6,0x9c,0xf9,0x25};
    sm9_fn_from_bytes(a, a40);
    sm9_fn_from_bytes(b, b40);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c40, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a41[32] = {0x41,0x45,0xba,0x1d,0xe3,0x9c,0x97,0x27,0xc4,0x29,0x4f,0x22,0xbc,0x5d,0x0c,0x92,0xd2,0xd3,0xbf,0x83,0xc4,0x4e,0x0b,0x9e,0x12,0xec,0x52,0x56,0x61,0x0d,0x1b,0x73};
    static std::uint8_t b41[32] = {0x7c,0x12,0x16,0xf8,0x1b,0x5b,0x65,0xfb,0x88,0x9c,0x5b,0xb1,0x04,0x81,0xe5,0x4c,0x60,0xbf,0x8c,0x47,0xe4,0x52,0xa1,0x4a,0x53,0x3f,0x13,0xfa,0xb7,0xc7,0x9c,0x72};
    static std::uint8_t c41[32] = {0x7a,0x8c,0x60,0x7b,0xf2,0x66,0x8b,0xa1,0x34,0x69,0x05,0x45,0x80,0x33,0x6c,0x40,0x0c,0x67,0xa1,0x7d,0xf3,0x43,0x36,0xf7,0xdc,0x65,0xe2,0x83,0x4f,0xd2,0x9b,0x06};
    sm9_fn_from_bytes(a, a41);
    sm9_fn_from_bytes(b, b41);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c41, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a42[32] = {0xa8,0x46,0x21,0x2e,0xf2,0x73,0x05,0xa1,0x54,0x0b,0xfe,0x40,0x2e,0x42,0xe7,0x1d,0xd9,0x14,0x60,0x90,0xde,0xe5,0x87,0x36,0x81,0xd5,0x98,0x03,0xfb,0xb8,0x40,0x75};
    static std::uint8_t b42[32] = {0x85,0x4d,0x23,0x20,0x59,0xa9,0x7c,0xbc,0xe8,0xa5,0xeb,0x08,0xda,0x9b,0x45,0x96,0xa9,0x01,0x91,0x67,0xfa,0x25,0x6a,0xc2,0xdc,0x91,0x84,0xf6,0x43,0x22,0x42,0x42};
    static std::uint8_t c42[32] = {0x56,0x7f,0x90,0xd9,0x54,0x6f,0x73,0xea,0x71,0x9d,0x0a,0xc1,0x55,0xbd,0xaa,0xbe,0xcd,0x69,0x36,0x2e,0x7e,0x7b,0xe4,0x4a,0xcf,0xf9,0x6d,0xf3,0x16,0xe9,0x56,0xcf};
    sm9_fn_from_bytes(a, a42);
    sm9_fn_from_bytes(b, b42);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c42, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a43[32] = {0x3c,0x02,0xa5,0x28,0x2e,0x6a,0x36,0x0b,0x87,0xe8,0x3d,0x6e,0xfd,0x14,0xc1,0xa5,0xe0,0x10,0xd4,0xe4,0x5b,0xc8,0x8f,0x59,0x98,0xa7,0xa3,0x35,0x2c,0x6c,0xc5,0xfe};
    static std::uint8_t b43[32] = {0x0b,0xa6,0x1c,0x36,0xbc,0x47,0xec,0x07,0x2a,0x25,0xeb,0x91,0x65,0x58,0x65,0x40,0x69,0x2f,0x90,0xd1,0xc1,0xa0,0x37,0xea,0x5c,0xf8,0x29,0xd3,0x75,0xc0,0x66,0x0d};
    static std::uint8_t c43[32] = {0xb5,0x16,0x44,0x2f,0x33,0x2d,0xfd,0x4b,0x2a,0xac,0x1f,0x97,0x2b,0x8f,0xe5,0xc0,0xf4,0xad,0xa5,0x18,0x11,0xdd,0x83,0xe6,0x2c,0xe6,0x78,0x2f,0x08,0x80,0xcd,0x7f};
    sm9_fn_from_bytes(a, a43);
    sm9_fn_from_bytes(b, b43);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c43, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a44[32] = {0x23,0x97,0x62,0x68,0x6f,0x36,0x9a,0x57,0x31,0xfb,0xbe,0xa2,0x16,0xee,0x4a,0x9c,0x1f,0xf0,0x4c,0xcc,0xb0,0xbe,0xb9,0xff,0x41,0xd5,0xf9,0x48,0x37,0xd3,0x5b,0x4f};
    static std::uint8_t b44[32] = {0x00,0x78,0x6d,0x43,0x82,0x9d,0x04,0x86,0xcc,0xda,0x62,0xe3,0xf8,0xd9,0x56,0xf6,0x65,0x81,0x72,0x2a,0xa1,0x35,0x32,0x45,0x39,0x41,0xc5,0x1b,0x49,0x30,0x63,0xe2};
    static std::uint8_t c44[32] = {0x8b,0x90,0x5d,0xc3,0x8c,0x70,0x0b,0x22,0x3c,0x00,0xf1,0xdb,0x9f,0x03,0x9e,0xd1,0x2e,0x59,0x77,0x24,0xa1,0x2f,0x0d,0x0d,0xd2,0xd6,0x0a,0xf9,0x2e,0x8d,0x75,0xed};
    sm9_fn_from_bytes(a, a44);
    sm9_fn_from_bytes(b, b44);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c44, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a45[32] = {0x5a,0x30,0x30,0x48,0x69,0x2b,0x8e,0x95,0x9e,0x43,0x41,0xed,0x4c,0x4f,0x86,0x3d,0xf1,0xc0,0x7b,0xbf,0xec,0x6e,0x25,0x9d,0x46,0x5c,0x99,0xa6,0xfa,0x30,0xf7,0x1d};
    static std::uint8_t b45[32] = {0x57,0x9d,0x5a,0x66,0x43,0x85,0xf3,0x3c,0x94,0x4c,0x08,0xae,0x2b,0xb0,0xa8,0x6f,0x57,0xb7,0x08,0x92,0x97,0xdc,0xf8,0xb5,0xa0,0x10,0x7d,0x75,0xf1,0x4c,0xbb,0x49};
    static std::uint8_t c45[32] = {0x35,0x14,0x0c,0x41,0xf0,0xdf,0xf6,0x38,0x0b,0xb5,0x83,0xdb,0x63,0xfe,0x87,0x34,0xc5,0x84,0xaf,0x3a,0xcd,0xd0,0xb9,0xf4,0xdf,0x89,0x94,0x3e,0x9b,0x1b,0xda,0x02};
    sm9_fn_from_bytes(a, a45);
    sm9_fn_from_bytes(b, b45);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c45, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a46[32] = {0x46,0xfa,0xe5,0xce,0x84,0xb9,0x10,0x71,0x0b,0xe6,0x1f,0x6f,0x5f,0x26,0x8a,0x10,0x41,0xe9,0x18,0x1f,0xb4,0x24,0x0b,0x1d,0x05,0x56,0xf6,0x27,0x48,0xe9,0x77,0xc2};
    static std::uint8_t b46[32] = {0xa4,0x41,0xda,0x45,0xfa,0x91,0xab,0xe6,0xe3,0x90,0x7d,0x33,0xf0,0xc6,0xc3,0x2a,0xb6,0x27,0xac,0x9d,0xd7,0x18,0x51,0x3b,0x30,0xbc,0xdf,0x42,0x78,0xa8,0x3a,0x05};
    static std::uint8_t c46[32] = {0x32,0xfb,0x94,0xfa,0x38,0x15,0x67,0x4c,0xbd,0x59,0xbf,0x44,0x37,0x67,0x2f,0x6f,0x65,0xae,0xfd,0x53,0x35,0x23,0x4c,0xeb,0x59,0xc7,0x25,0xb1,0xc7,0x72,0x56,0x8d};
    sm9_fn_from_bytes(a, a46);
    sm9_fn_from_bytes(b, b46);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c46, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a47[32] = {0x32,0x09,0x32,0xe7,0x5b,0x62,0xdc,0xeb,0x86,0x54,0x4a,0xcc,0xa6,0x3e,0x77,0xe8,0x28,0xa1,0xc4,0x8b,0x33,0x41,0x7a,0xf7,0x4d,0xc1,0x45,0xbe,0x49,0xba,0x1a,0xf1};
    static std::uint8_t b47[32] = {0x80,0x62,0x02,0xca,0x78,0xd7,0xf6,0x06,0x00,0x0d,0x33,0x01,0x57,0x0c,0xab,0x4d,0x37,0x6d,0x12,0xab,0xaf,0x95,0x64,0x1a,0xe7,0xda,0x08,0x15,0xd1,0x76,0x15,0x07};
    static std::uint8_t c47[32] = {0x15,0x29,0x55,0xe2,0x1e,0xf2,0xd8,0xaf,0x6f,0xbb,0xf2,0xac,0x0d,0x0f,0x36,0xeb,0x39,0x7a,0xf6,0xf1,0x06,0x6b,0x54,0xf9,0xc0,0x92,0xc7,0x61,0x4e,0x1b,0x6f,0x61};
    sm9_fn_from_bytes(a, a47);
    sm9_fn_from_bytes(b, b47);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c47, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a48[32] = {0x7d,0x94,0x7e,0xa9,0x39,0xf0,0x41,0x69,0x18,0xba,0xc3,0xb1,0x15,0x02,0x6a,0xb3,0x02,0x6c,0x8a,0x0c,0x1e,0x39,0xc2,0xdb,0x7d,0x9f,0xea,0x79,0x85,0x7d,0x4b,0x0a};
    static std::uint8_t b48[32] = {0x26,0xcb,0x4d,0xfa,0x2e,0x82,0xe2,0xc4,0xe9,0xc3,0x6e,0xa8,0x6b,0x9b,0x50,0xc0,0xc7,0xf7,0x05,0x63,0x5c,0xc6,0xaf,0x4d,0x16,0x0a,0xa3,0xfa,0x55,0x5d,0xb9,0x00};
    static std::uint8_t c48[32] = {0x6a,0x0b,0x2d,0x20,0x20,0x6d,0x9e,0xfd,0x37,0xc2,0xa9,0x1e,0x5a,0xb1,0xd5,0xed,0x3a,0x43,0x25,0xad,0x76,0x73,0x22,0xe8,0x26,0xac,0xac,0xdc,0x95,0xbb,0xee,0xca};
    sm9_fn_from_bytes(a, a48);
    sm9_fn_from_bytes(b, b48);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c48, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a49[32] = {0x89,0x1b,0xed,0xe5,0x1a,0x5c,0xba,0x0b,0x1d,0x62,0x9a,0x9d,0x1d,0x44,0x5d,0xa5,0x9c,0xe7,0x20,0xf3,0x5f,0x4c,0x9c,0xf3,0x66,0x7a,0x77,0xd3,0x89,0xf4,0xb1,0xfb};
    static std::uint8_t b49[32] = {0xa4,0x96,0x8c,0xca,0x19,0x27,0x70,0x0f,0xcd,0x3d,0xf3,0x7e,0x9d,0xd9,0x0e,0x09,0x19,0x2f,0x42,0x2a,0x1f,0x14,0xb1,0x27,0x5e,0x9c,0x5f,0x1d,0xb5,0x50,0xa1,0x59};
    static std::uint8_t c49[32] = {0x3a,0x99,0x1b,0x80,0xc2,0x65,0x42,0x85,0x46,0x4f,0x9e,0x88,0x1d,0xed,0xab,0x3f,0xda,0x67,0x62,0x70,0xb9,0x08,0x13,0x59,0x88,0x92,0x85,0x18,0x41,0x22,0xed,0x5d};
    sm9_fn_from_bytes(a, a49);
    sm9_fn_from_bytes(b, b49);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c49, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a50[32] = {0xb2,0x33,0xc7,0x19,0x46,0xe3,0x90,0xae,0x8b,0x19,0x6e,0xe7,0x67,0x42,0xd8,0x94,0xf7,0x3c,0xc7,0x76,0xf7,0x0b,0x70,0x2b,0xf4,0x13,0x7d,0xf4,0x21,0xfc,0xa2,0x91};
    static std::uint8_t b50[32] = {0x49,0x74,0xe7,0xb0,0x49,0xea,0xca,0x8c,0xcb,0xad,0x56,0x28,0x14,0xfb,0xeb,0xca,0x74,0xac,0xcb,0xe1,0x40,0x84,0xbb,0x56,0x46,0x61,0xdb,0x92,0x0a,0x49,0x47,0xfc};
    static std::uint8_t c50[32] = {0x77,0xdd,0xc5,0x6a,0x22,0x54,0xf2,0x1f,0x08,0x6f,0xef,0x9e,0xa3,0x76,0x28,0x1e,0x16,0x9f,0xbb,0xb4,0x83,0x48,0x7b,0x45,0xd5,0x6d,0xb0,0x51,0xb7,0xb2,0x0f,0xbc};
    sm9_fn_from_bytes(a, a50);
    sm9_fn_from_bytes(b, b50);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c50, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a51[32] = {0x6b,0xa5,0xde,0xec,0x5a,0xec,0x7e,0xc9,0x02,0x53,0xcc,0x0f,0x31,0x58,0x4e,0x71,0x1c,0x43,0x3d,0xda,0xe2,0x09,0x02,0x2f,0x3a,0x69,0x37,0x79,0x69,0x6c,0xcc,0x3b};
    static std::uint8_t b51[32] = {0xa9,0xdb,0xcf,0x78,0xdc,0x4b,0xa4,0x1d,0x48,0xa7,0xe8,0xc8,0x99,0xba,0xdd,0x80,0x16,0xa9,0x34,0x3b,0xc7,0xc5,0xa8,0xcc,0x8f,0xc4,0x05,0x9c,0xf9,0xd3,0xf1,0x5a};
    static std::uint8_t c51[32] = {0x78,0xc2,0xb3,0x0d,0x8d,0x73,0x8e,0x9e,0xbe,0x81,0x57,0x0a,0x6a,0xb8,0xbc,0x4f,0xc5,0x90,0x20,0x4d,0xfb,0xc7,0x6d,0xef,0xdc,0x34,0xda,0x9d,0x3e,0xde,0x1f,0xde};
    sm9_fn_from_bytes(a, a51);
    sm9_fn_from_bytes(b, b51);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c51, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a52[32] = {0x6c,0x8c,0x44,0x1c,0x0f,0x32,0x31,0x5d,0xdc,0x83,0x68,0xa5,0x42,0x41,0xe0,0xda,0x04,0x55,0xb4,0x17,0xe4,0xf0,0x8f,0x78,0x92,0x0c,0x67,0xac,0x28,0x3d,0xb8,0x20};
    static std::uint8_t b52[32] = {0x08,0x18,0x46,0xc1,0x0c,0x45,0x61,0xa4,0x98,0x71,0x8d,0x6a,0xfe,0xc8,0x8c,0x32,0x2a,0x62,0x8b,0xd0,0x89,0x3d,0x9f,0xe1,0xd0,0xf9,0x9a,0x4d,0x44,0x4e,0x8f,0x8a};
    static std::uint8_t c52[32] = {0x11,0xa8,0xb4,0x9d,0xdd,0xbe,0x76,0xda,0xf2,0xfa,0x2c,0x7e,0x91,0x4a,0x4c,0x0d,0xc3,0xf5,0x5b,0x1f,0x27,0x50,0x0d,0x49,0xd0,0xc8,0x02,0x25,0xee,0xda,0x9d,0x3b};
    sm9_fn_from_bytes(a, a52);
    sm9_fn_from_bytes(b, b52);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c52, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a53[32] = {0x24,0xf2,0x66,0xcd,0x5c,0x7f,0xa3,0xff,0xb9,0x2b,0xb4,0x2c,0x8c,0x02,0xef,0x7c,0xe3,0x3d,0x27,0x15,0x89,0x4c,0x9e,0x93,0x27,0xfc,0xba,0x96,0x94,0xc5,0x68,0x3c};
    static std::uint8_t b53[32] = {0x62,0xf0,0xc7,0xd4,0x51,0xea,0xa0,0x21,0xdd,0xf6,0x0f,0xb8,0x0e,0xb0,0x40,0x63,0xb3,0x71,0xed,0x20,0x9c,0x28,0xf6,0xd1,0xd3,0xd9,0x51,0x41,0x36,0x06,0x7f,0x97};
    static std::uint8_t c53[32] = {0x1d,0x93,0xa7,0x51,0x0f,0xfd,0xbc,0x4c,0xaa,0xd2,0x74,0x4c,0xc8,0xb1,0xed,0x98,0x05,0x3f,0x27,0x8f,0x07,0x40,0xc6,0x90,0x14,0xd7,0x73,0x90,0xd9,0x1f,0xe8,0x8a};
    sm9_fn_from_bytes(a, a53);
    sm9_fn_from_bytes(b, b53);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c53, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a54[32] = {0x83,0x21,0x8d,0xa0,0xf6,0x32,0x08,0xb4,0x4b,0xa0,0x9f,0x41,0x47,0x06,0x31,0x0f,0x15,0x19,0x8b,0x6c,0x84,0xb3,0x50,0x37,0x0a,0x7b,0xa8,0x69,0xf3,0xfb,0x80,0xc5};
    static std::uint8_t b54[32] = {0x60,0xf0,0x37,0xf2,0x44,0xf8,0x0a,0x70,0x68,0x04,0x71,0xde,0xc2,0x2b,0xb6,0x2b,0x96,0xa9,0xad,0x7b,0x9e,0x99,0x89,0xf3,0x04,0x89,0x53,0xb8,0x7e,0x11,0x63,0x0e};
    static std::uint8_t c54[32] = {0x74,0x8f,0xf0,0x4a,0x3c,0x77,0x0c,0xa6,0x2f,0xb1,0xc9,0xc9,0x8a,0x4a,0x2e,0xbb,0x88,0xa0,0x54,0xad,0xd7,0x32,0x99,0x44,0xf9,0x23,0xb7,0xce,0x9a,0xc5,0xca,0xcf};
    sm9_fn_from_bytes(a, a54);
    sm9_fn_from_bytes(b, b54);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c54, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a55[32] = {0xa2,0x8d,0x67,0x44,0x68,0xe8,0xab,0x83,0x5e,0x6e,0x40,0x2b,0xc6,0x64,0x04,0x1d,0xd9,0x9f,0xcf,0xad,0xcd,0xa8,0x2b,0x1e,0x8b,0x3b,0xe8,0xdc,0xd4,0xa5,0x1b,0x57};
    static std::uint8_t b55[32] = {0x3e,0x6c,0xb8,0x8d,0x1a,0xed,0x00,0x61,0xa4,0x8d,0x80,0x13,0x56,0xac,0xa7,0x69,0x5c,0x69,0x40,0x93,0x9e,0xe7,0xd3,0xeb,0xb0,0x8b,0xf3,0xdc,0x2b,0x34,0xb4,0xeb};
    static std::uint8_t c55[32] = {0xa5,0x04,0x1d,0x90,0x25,0x0c,0x2e,0x75,0x1e,0x94,0x75,0xd1,0x98,0x7f,0xb3,0x0f,0xf2,0x37,0xc2,0x17,0x82,0xbe,0xd3,0x09,0x21,0xa9,0x6b,0x1b,0x0f,0x56,0xfa,0xdd};
    sm9_fn_from_bytes(a, a55);
    sm9_fn_from_bytes(b, b55);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c55, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a56[32] = {0x27,0x54,0xeb,0xcc,0x17,0xc6,0xca,0xbc,0x5b,0x64,0x46,0x45,0x2d,0x3f,0x5f,0x17,0x04,0x31,0xa0,0x25,0x47,0x39,0xa5,0x6f,0xec,0xc2,0xc0,0x89,0x72,0xbc,0xbe,0x2a};
    static std::uint8_t b56[32] = {0x3a,0xbd,0x58,0x9e,0x61,0x7b,0x6d,0xa1,0x6a,0xdd,0xa8,0xdf,0x06,0x90,0x26,0x32,0x8d,0xe5,0xf6,0x15,0x4b,0x73,0xe8,0xc6,0x3f,0x81,0xce,0x38,0x1a,0x9a,0x14,0x29};
    static std::uint8_t c56[32] = {0x6a,0xca,0xbf,0xa6,0x72,0x6d,0x72,0x87,0xc6,0x38,0x35,0x50,0x8d,0xd2,0x55,0x44,0xc0,0x3d,0xc2,0x37,0x68,0x91,0xff,0xf9,0x4c,0x08,0x57,0x42,0xc5,0x89,0x46,0x3f};
    sm9_fn_from_bytes(a, a56);
    sm9_fn_from_bytes(b, b56);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c56, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a57[32] = {0x50,0xe2,0x07,0x2f,0x1e,0x0a,0x31,0x93,0x23,0x3f,0xfd,0x2c,0x13,0xc4,0xc0,0x6b,0xfd,0x35,0x39,0xdb,0x08,0xe3,0x7c,0xfc,0x2c,0x45,0x0b,0xf0,0x83,0xb4,0x6c,0x36};
    static std::uint8_t b57[32] = {0x17,0xac,0xfb,0x84,0x3b,0x96,0x1c,0xb0,0x6d,0x5b,0xb1,0x07,0x2e,0x38,0x9b,0x8c,0x4b,0x7d,0x8c,0x28,0x16,0x28,0x48,0x2a,0x99,0x2d,0xb9,0xb3,0xd0,0x36,0x29,0xd9};
    static std::uint8_t c57[32] = {0x4d,0x3a,0xe2,0x70,0xa4,0xa1,0x56,0xba,0xd2,0x07,0xd4,0x71,0x17,0xdb,0x5f,0x3b,0x82,0xd4,0x00,0x9e,0xea,0x51,0xa2,0xc4,0xdb,0x30,0xe7,0xa4,0x23,0xea,0x5b,0x75};
    sm9_fn_from_bytes(a, a57);
    sm9_fn_from_bytes(b, b57);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c57, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a58[32] = {0x35,0xe8,0x8f,0xb3,0xb2,0xf1,0x5b,0xd6,0x80,0xcd,0x73,0xde,0x0a,0xb6,0xc3,0xbc,0x94,0xc1,0xab,0x67,0xa5,0x3a,0x2c,0x51,0x5e,0xf6,0xde,0xcf,0xa8,0xc2,0x95,0x60};
    static std::uint8_t b58[32] = {0x81,0xfb,0xf4,0xf2,0x49,0x4c,0x79,0x70,0x12,0xb3,0xf7,0x19,0x0a,0x7f,0x08,0x83,0xeb,0xab,0xab,0x44,0x3e,0x48,0xa2,0x4b,0xd7,0x6f,0x11,0x0a,0x14,0x50,0x4e,0x80};
    static std::uint8_t c58[32] = {0x92,0xdf,0xf7,0xc1,0xa7,0x1d,0x7e,0x6b,0xe8,0x4d,0xbd,0xaa,0xfb,0x5c,0x9c,0x2d,0xc3,0x9f,0xcd,0x4d,0x90,0xc4,0x71,0xb0,0x51,0xac,0x7e,0x60,0x52,0xc9,0x99,0x95};
    sm9_fn_from_bytes(a, a58);
    sm9_fn_from_bytes(b, b58);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c58, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a59[32] = {0x92,0xdb,0xd9,0x68,0x95,0x0a,0xd7,0xb7,0xa0,0x77,0x32,0x6f,0x6b,0x77,0xff,0x20,0x2b,0xff,0x83,0xd5,0x3c,0x61,0xe4,0x01,0x38,0x1c,0xd6,0x6a,0x6c,0x0f,0x97,0x7f};
    static std::uint8_t b59[32] = {0x19,0x1b,0x5d,0x30,0x30,0xd1,0x8c,0x75,0xcd,0x6c,0xfb,0xbd,0xa4,0xfe,0xd1,0xa6,0x89,0x76,0x19,0x37,0xbe,0xf7,0x48,0x6a,0x7b,0x8d,0x78,0x88,0xcf,0x9a,0x19,0xe1};
    static std::uint8_t c59[32] = {0x25,0x95,0xae,0x8e,0x54,0xc8,0xdf,0xe4,0x1e,0x08,0xd9,0x60,0x4c,0x7b,0x02,0x2e,0x66,0xf7,0xf1,0xf9,0xea,0xb2,0xda,0xd9,0x8c,0x97,0xe1,0x33,0x77,0x90,0x38,0x1e};
    sm9_fn_from_bytes(a, a59);
    sm9_fn_from_bytes(b, b59);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c59, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a60[32] = {0x21,0xb3,0x75,0x65,0xe8,0x05,0x1e,0x01,0x37,0xc4,0x2a,0x02,0x3f,0x97,0x24,0xc5,0x59,0x68,0x9d,0x41,0x34,0x23,0x24,0x72,0x0a,0xae,0xa4,0xa9,0xf0,0xb5,0x88,0x79};
    static std::uint8_t b60[32] = {0x3e,0xc7,0xb0,0x15,0xbb,0x3e,0x4f,0xcb,0xa6,0xa7,0x33,0x00,0xa8,0x11,0x45,0x4d,0x10,0xbc,0x41,0xd5,0xe1,0x2c,0xc6,0x11,0x17,0x56,0xae,0x34,0xf2,0x1a,0xc0,0x02};
    static std::uint8_t c60[32] = {0xaa,0xf6,0xf1,0x60,0x3d,0x66,0x47,0xd5,0x73,0xd2,0xb3,0x4c,0x34,0x17,0x4b,0x51,0xeb,0x2d,0x4b,0x67,0x86,0x9c,0xd5,0x23,0x92,0xd5,0xa2,0xdc,0xa6,0xfe,0x0e,0xbd};
    sm9_fn_from_bytes(a, a60);
    sm9_fn_from_bytes(b, b60);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c60, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a61[32] = {0x22,0xe4,0x40,0x07,0x09,0x17,0xdb,0x01,0x86,0x7e,0x80,0x85,0xb7,0x9f,0xd7,0xee,0x2f,0x0b,0xda,0x08,0x02,0xa1,0x1c,0x51,0x8e,0xb2,0x23,0xc3,0x6b,0x80,0x8e,0xe1};
    static std::uint8_t b61[32] = {0x93,0x48,0x58,0xe5,0xae,0xcc,0x7c,0x78,0xbe,0xf1,0xf3,0x15,0x43,0x76,0xce,0x68,0x7f,0xa3,0x52,0xfe,0x06,0x36,0xfc,0xf4,0xac,0x40,0x0c,0x5b,0xe1,0x3b,0x80,0x82};
    static std::uint8_t c61[32] = {0xb1,0x02,0x28,0x80,0x74,0x6d,0xa7,0x17,0x55,0xeb,0xac,0x30,0x3d,0xbd,0x50,0xe5,0xd1,0x51,0x80,0xb3,0x9c,0x09,0x80,0xdc,0x58,0x4b,0xad,0x42,0xa5,0x72,0xd3,0x36};
    sm9_fn_from_bytes(a, a61);
    sm9_fn_from_bytes(b, b61);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c61, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a62[32] = {0x8c,0x19,0xde,0x29,0xae,0x0d,0xfa,0x10,0xc4,0x50,0xc6,0x00,0xea,0xc8,0x00,0x5b,0x66,0x13,0x01,0xce,0x51,0x2e,0xd2,0x32,0xe1,0xb1,0xcb,0xe6,0xcf,0xcb,0x49,0x9d};
    static std::uint8_t b62[32] = {0x3f,0x60,0x79,0x5b,0x76,0x7c,0xfe,0x59,0x71,0x7f,0x08,0x22,0xfd,0x52,0xe5,0xe2,0xb5,0x7f,0xd7,0x5b,0xe7,0x76,0xbf,0xa3,0xd9,0xde,0x52,0xe9,0x3f,0xea,0xcc,0xb6};
    static std::uint8_t c62[32] = {0x4e,0xd6,0x5c,0xa7,0xe8,0xef,0x58,0x66,0x76,0x3a,0x4f,0x91,0x26,0x30,0x52,0x68,0x13,0xd8,0x32,0x28,0xf5,0xb5,0x9c,0x3f,0x13,0x5c,0x2c,0x12,0xdf,0x06,0x8c,0x63};
    sm9_fn_from_bytes(a, a62);
    sm9_fn_from_bytes(b, b62);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c62, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a63[32] = {0x2a,0xe2,0x18,0x34,0xe0,0x14,0x03,0xc1,0xbe,0x05,0x2c,0xa9,0xec,0xad,0xf1,0x89,0x1a,0x90,0x01,0x02,0x2c,0x5c,0x98,0xc3,0x86,0x1a,0xe3,0xf0,0x63,0xfa,0x1c,0xb7};
    static std::uint8_t b63[32] = {0xb5,0x46,0x21,0x3b,0x2a,0x1a,0xe2,0xf5,0xce,0x95,0x8e,0xf2,0x1a,0x6c,0xea,0x8b,0xa4,0x41,0x1a,0xb8,0xcd,0xca,0xef,0x01,0x37,0x27,0x17,0x78,0xc8,0x84,0xce,0x68};
    static std::uint8_t c63[32] = {0x19,0xdd,0x31,0x06,0x13,0x46,0xf3,0x52,0x3a,0x8f,0xd2,0x7b,0x0d,0x29,0xc5,0x8e,0x35,0x11,0xca,0x87,0xe9,0xa7,0xbe,0xef,0xb9,0xc0,0xeb,0x17,0x34,0x07,0x72,0x66};
    sm9_fn_from_bytes(a, a63);
    sm9_fn_from_bytes(b, b63);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c63, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a64[32] = {0x42,0x42,0xbc,0xe8,0xf6,0x32,0x8d,0xb9,0x6b,0x87,0xe8,0x2e,0xaa,0xcb,0xb2,0xa7,0xe6,0xb3,0x36,0x2b,0xf3,0x44,0x15,0x5f,0x56,0x81,0x77,0xab,0x29,0xf6,0x10,0x59};
    static std::uint8_t b64[32] = {0x0f,0x91,0x41,0x90,0x5b,0xf9,0xd8,0xd6,0xea,0xa0,0xe3,0x80,0xdd,0xbc,0x33,0xc9,0xc5,0x39,0x7e,0x5a,0xf5,0x60,0x16,0xc5,0xb6,0xe8,0xcc,0xf8,0x10,0x39,0x69,0x84};
    static std::uint8_t c64[32] = {0x6f,0xfd,0x28,0xd3,0xc6,0x6b,0x34,0x67,0x9a,0x44,0x9b,0xc5,0x11,0xc9,0x22,0x87,0xc8,0xd5,0x86,0x96,0xaa,0x22,0xe7,0xfc,0xe4,0xd3,0x45,0x4b,0x46,0x41,0x99,0xec};
    sm9_fn_from_bytes(a, a64);
    sm9_fn_from_bytes(b, b64);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c64, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a65[32] = {0x4a,0x60,0x86,0xd2,0x64,0xaa,0xc1,0x38,0x7f,0x1f,0xaf,0x13,0xe9,0x7b,0x90,0xfd,0x85,0x06,0x02,0x0e,0x8e,0x3d,0x08,0xea,0x28,0xe7,0x2c,0x71,0xbd,0x27,0x23,0x02};
    static std::uint8_t b65[32] = {0x2f,0x5a,0x40,0x70,0xe2,0x39,0xb7,0xe5,0x0a,0x1e,0x88,0x48,0x96,0xbd,0x48,0x9c,0x56,0x6b,0x11,0x64,0x84,0xa3,0x1c,0x6a,0x29,0x46,0x9f,0xc1,0x93,0xce,0xcd,0x02};
    static std::uint8_t c65[32] = {0x81,0x22,0x5a,0x08,0x96,0x3d,0x5a,0xc1,0x83,0x45,0x68,0xf8,0xfc,0x21,0xed,0x0a,0x89,0x75,0x86,0x45,0x43,0xee,0xa3,0xbb,0x0a,0x69,0x10,0x01,0xce,0xcb,0x19,0x76};
    sm9_fn_from_bytes(a, a65);
    sm9_fn_from_bytes(b, b65);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c65, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a66[32] = {0x2b,0xd6,0x32,0x6b,0x2d,0x55,0x2e,0xa6,0x91,0xa0,0x75,0x0a,0x38,0x9a,0xc4,0x62,0xd6,0x17,0x4e,0x0f,0x96,0xcc,0xbb,0xee,0x45,0x3c,0xab,0x44,0xd3,0x98,0xa0,0x04};
    static std::uint8_t b66[32] = {0x46,0x24,0xf6,0xd6,0x44,0x48,0xd8,0x10,0x08,0xc7,0x1f,0x28,0x97,0x07,0x32,0x98,0xee,0x66,0x81,0x01,0x4c,0x41,0xbf,0xd1,0xa0,0xca,0x83,0x34,0x06,0xde,0xc3,0x28};
    static std::uint8_t c66[32] = {0x63,0x6e,0x19,0x35,0x7d,0x33,0x52,0x70,0x84,0x66,0x6c,0x1a,0xbe,0x8e,0x23,0x6a,0xef,0x6d,0x59,0x8d,0xb6,0x4e,0x5b,0xeb,0xba,0xe5,0xda,0x90,0x7b,0x14,0xbb,0x94};
    sm9_fn_from_bytes(a, a66);
    sm9_fn_from_bytes(b, b66);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c66, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a67[32] = {0x31,0x31,0x6a,0x4f,0x6f,0x60,0x14,0xf0,0x89,0xd9,0x91,0x57,0x9a,0xea,0x05,0x12,0xd0,0xa8,0x02,0x5d,0xa8,0xe2,0x06,0x5c,0x59,0xb4,0xe9,0x98,0x21,0x06,0x0b,0x7c};
    static std::uint8_t b67[32] = {0x95,0x9f,0xf3,0x56,0xdd,0xd7,0x34,0x85,0x40,0xea,0x76,0x9f,0xc0,0x5c,0x8f,0x89,0xd2,0xa7,0x35,0xb1,0x1f,0x03,0x4b,0x99,0x2d,0x04,0x37,0xc3,0x5e,0x6d,0x30,0x97};
    static std::uint8_t c67[32] = {0x96,0xad,0xbe,0x0f,0x77,0x1f,0x22,0xe4,0x26,0x10,0xea,0x81,0xd1,0xaf,0x93,0x3a,0x86,0x5e,0xbb,0xbc,0xdd,0x4c,0x91,0x9b,0x27,0xd8,0xe4,0xdb,0x86,0xb9,0xc4,0x9f};
    sm9_fn_from_bytes(a, a67);
    sm9_fn_from_bytes(b, b67);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c67, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a68[32] = {0x34,0xe9,0x66,0xa5,0x64,0xe3,0x5a,0x2d,0xbe,0x9a,0x75,0xa5,0x68,0x2b,0x3b,0xd4,0x6e,0xee,0xda,0x2a,0xf3,0x1d,0xd3,0x58,0xf5,0x2d,0x61,0x60,0x19,0x88,0x25,0xcc};
    static std::uint8_t b68[32] = {0x6f,0xb4,0xd4,0xa5,0x62,0x59,0x3b,0x12,0x86,0xc9,0xd8,0x52,0x5e,0x8a,0x1c,0x95,0xcf,0xf2,0xd1,0x1b,0x5a,0xe9,0x3d,0x3a,0x07,0x61,0x47,0x8b,0x33,0x06,0x97,0x0e};
    static std::uint8_t c68[32] = {0x6f,0x03,0xe1,0x41,0x85,0xa4,0x7a,0xbd,0xce,0xf7,0xac,0xde,0x7a,0x8e,0xdc,0x64,0x24,0x6c,0x7a,0x7e,0x7e,0xe1,0x3f,0x6a,0xc3,0x26,0xfe,0x94,0xfd,0xf3,0x88,0x6a};
    sm9_fn_from_bytes(a, a68);
    sm9_fn_from_bytes(b, b68);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c68, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a69[32] = {0x40,0x36,0xc1,0x2f,0xfa,0xf1,0x2a,0x2b,0xa7,0x45,0x9d,0x60,0x4e,0xd9,0xa8,0x32,0xd9,0x13,0x10,0x05,0xda,0x1a,0x31,0xb9,0x7b,0xed,0x89,0x49,0x37,0x32,0x11,0x09};
    static std::uint8_t b69[32] = {0x19,0x71,0xe4,0x02,0x6f,0xe1,0x65,0xc6,0xc5,0x79,0x70,0x98,0x18,0xeb,0xf4,0x1f,0x38,0xf3,0xa2,0x44,0xe3,0xac,0xfd,0xfa,0x51,0x92,0x4e,0x03,0xf6,0x90,0x27,0x06};
    static std::uint8_t c69[32] = {0x9a,0xac,0x26,0xf8,0x07,0xae,0x4d,0x77,0xae,0x93,0x14,0xf8,0xea,0xba,0xbd,0x82,0x6e,0x5c,0x5e,0xc6,0x91,0xe2,0xa3,0x8c,0xdc,0x92,0x1d,0x9d,0x1e,0x3a,0x2b,0x26};
    sm9_fn_from_bytes(a, a69);
    sm9_fn_from_bytes(b, b69);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c69, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a70[32] = {0x18,0x19,0xcc,0xef,0xda,0x44,0xc0,0x59,0x0b,0x3e,0x0a,0xa2,0x49,0xc6,0x6e,0x53,0x1b,0x06,0xd4,0xc8,0x7c,0xab,0x2c,0xc9,0x63,0xf3,0x19,0x18,0xdb,0xb1,0x72,0x21};
    static std::uint8_t b70[32] = {0x18,0x42,0x58,0xbc,0x04,0x53,0xc7,0x1b,0xbb,0x4d,0x0e,0x61,0x5c,0xb0,0x68,0x9e,0x21,0xf6,0x10,0xdb,0x43,0xde,0xe5,0x59,0xe1,0x5f,0x54,0x30,0x68,0xbb,0x8c,0x20};
    static std::uint8_t c70[32] = {0xae,0xbd,0x26,0x09,0x9b,0x41,0xfb,0x80,0x4f,0x0a,0xe1,0x6b,0xa0,0xba,0x2a,0x5e,0xe7,0x9f,0x00,0x06,0xb6,0xdc,0x7f,0xbb,0xe6,0xfe,0xf2,0x40,0x1d,0xb9,0xd0,0x0e};
    sm9_fn_from_bytes(a, a70);
    sm9_fn_from_bytes(b, b70);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c70, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a71[32] = {0x81,0x24,0xdb,0x46,0xdd,0x27,0x50,0x83,0x66,0xd3,0x2e,0xe3,0x93,0x08,0xf6,0x01,0x7d,0x88,0x80,0x4d,0xe1,0x7a,0x60,0x3a,0xf9,0x13,0xfc,0xd9,0x6f,0x86,0xbb,0x98};
    static std::uint8_t b71[32] = {0x42,0x4a,0x39,0x8b,0x97,0xb2,0x86,0x82,0x3d,0x02,0xf0,0x8a,0x09,0x18,0xdb,0xc4,0x3c,0xb9,0x2b,0x53,0x7e,0xcf,0x12,0x39,0xce,0x3a,0x44,0xf1,0xf6,0x63,0xfb,0xc4};
    static std::uint8_t c71[32] = {0x4d,0xc9,0x5b,0x44,0x5a,0x9c,0x10,0x6b,0x25,0xe6,0x04,0xf3,0xe5,0xcb,0x0d,0x16,0x71,0x4f,0xdf,0x5c,0x44,0x84,0x39,0x50,0x4b,0xa2,0x07,0x26,0x82,0x10,0x04,0xea};
    sm9_fn_from_bytes(a, a71);
    sm9_fn_from_bytes(b, b71);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c71, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a72[32] = {0x01,0x9b,0x3b,0xd3,0x64,0x38,0xb7,0x65,0xdc,0xb5,0xfa,0x65,0xd3,0xb0,0xa1,0x57,0x70,0x8a,0xf9,0x98,0x28,0x68,0x1f,0xba,0xb5,0x13,0x23,0xd6,0xad,0x3c,0x9a,0x0c};
    static std::uint8_t b72[32] = {0x36,0xd2,0x32,0xe7,0x77,0x00,0x2a,0x8a,0xb5,0x12,0x75,0x0e,0x0a,0xfd,0xb8,0x28,0x9e,0xd2,0x4a,0x36,0x0c,0x1a,0x9a,0xff,0x78,0xd7,0xb1,0x93,0xfd,0x88,0xcb,0xfb};
    static std::uint8_t c72[32] = {0x45,0xf7,0x06,0x9b,0x90,0xcf,0x3c,0x86,0x27,0x8c,0xd7,0x24,0xea,0x88,0xef,0x55,0x41,0xa7,0x6f,0x4d,0xa4,0x35,0xbb,0x68,0xba,0x5e,0xc6,0x4f,0xad,0xfd,0x79,0xb9};
    sm9_fn_from_bytes(a, a72);
    sm9_fn_from_bytes(b, b72);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c72, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a73[32] = {0x5b,0x2f,0x54,0x7c,0x22,0xf0,0x66,0x5c,0xe3,0x95,0x5b,0xe8,0xb9,0x2c,0x22,0xd3,0x2e,0xd6,0xcf,0x53,0x04,0x0b,0x42,0x45,0x82,0x52,0x45,0x3a,0xee,0x82,0x14,0x47};
    static std::uint8_t b73[32] = {0x32,0xa6,0x99,0x96,0x56,0xa1,0x1e,0x3c,0xcd,0x97,0x59,0x54,0x59,0x5a,0xe6,0xe9,0xbe,0x9d,0x87,0xd0,0x5e,0x8d,0x1f,0xcf,0x69,0x78,0xd9,0x09,0xe8,0x06,0x02,0xe8};
    static std::uint8_t c73[32] = {0x2a,0x19,0x0f,0x3b,0xa3,0xc6,0xd4,0x84,0xe4,0x45,0x36,0x32,0xa2,0x58,0x7d,0x76,0x0a,0xe8,0x1c,0xc9,0xea,0x23,0xc0,0x4c,0xad,0x10,0x99,0x12,0xe8,0x27,0x52,0x61};
    sm9_fn_from_bytes(a, a73);
    sm9_fn_from_bytes(b, b73);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c73, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a74[32] = {0x25,0xe4,0x60,0xa9,0x74,0xdf,0x46,0x8f,0x9d,0x8e,0xb6,0x2e,0xfd,0x33,0x1b,0x65,0x65,0x54,0x7b,0x28,0xc7,0x09,0xaa,0x88,0xff,0x0b,0xfa,0x98,0x58,0xdc,0x70,0x8a};
    static std::uint8_t b74[32] = {0x32,0x9d,0x83,0x95,0x4a,0x8c,0x8e,0x14,0xcc,0xf8,0x7b,0x58,0x10,0x9f,0x8b,0x4a,0x7a,0x01,0x33,0x58,0xed,0x16,0xf1,0x99,0x27,0x2c,0xb8,0x43,0xd5,0x0f,0x56,0x1c};
    static std::uint8_t c74[32] = {0x0f,0x43,0x84,0x56,0x6f,0xc3,0x8b,0x92,0x5c,0xa5,0x38,0x17,0xe7,0xac,0xbb,0xcb,0xf6,0x05,0x88,0x77,0x09,0x9c,0x7b,0x4e,0x37,0xc2,0xf0,0xe3,0x1b,0xc0,0x7c,0x99};
    sm9_fn_from_bytes(a, a74);
    sm9_fn_from_bytes(b, b74);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c74, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a75[32] = {0x01,0x18,0x4b,0x5b,0x02,0xb0,0x8f,0x3c,0x77,0xe8,0x18,0xf3,0x47,0x78,0x23,0xfa,0x3d,0x02,0xcd,0x71,0x14,0x7a,0x75,0x91,0xd0,0x56,0x8c,0xef,0xc9,0xce,0x0e,0x75};
    static std::uint8_t b75[32] = {0x30,0x20,0x2d,0x41,0x6e,0xe1,0x6d,0x41,0x2a,0xd5,0x79,0x7b,0x2e,0x7b,0x48,0x56,0x0f,0x52,0x73,0xee,0xbd,0x47,0xa2,0x90,0x40,0xad,0x85,0xa5,0x89,0x6a,0xaf,0xae};
    static std::uint8_t c75[32] = {0xa1,0xb1,0xbf,0xc0,0xae,0xfc,0x43,0x1a,0xb8,0xf9,0x7b,0x13,0x7f,0x6d,0xb8,0x61,0xed,0x42,0x3c,0xeb,0x29,0x47,0x72,0xc3,0x46,0x17,0xb9,0x45,0xf2,0x8b,0x6d,0x19};
    sm9_fn_from_bytes(a, a75);
    sm9_fn_from_bytes(b, b75);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c75, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a76[32] = {0x8d,0xc3,0x9f,0x51,0xf7,0x26,0x46,0x90,0xe0,0x51,0xda,0x69,0x3f,0xa8,0x04,0xb6,0xc4,0x5b,0x0f,0xab,0x56,0x61,0xa7,0x7c,0x8c,0x31,0x2c,0xbf,0x11,0xc0,0x0d,0xaa};
    static std::uint8_t b76[32] = {0x1c,0xf7,0x9a,0x8a,0x16,0x5f,0x10,0x25,0x16,0x93,0x46,0xef,0x36,0x5a,0xab,0x56,0xa8,0x2f,0x25,0xc8,0x8a,0x5c,0x14,0x8b,0x03,0xef,0x70,0xa9,0x8a,0x19,0x49,0x63};
    static std::uint8_t c76[32] = {0x69,0x34,0x07,0xf7,0x0c,0xe3,0xda,0xc2,0xee,0x7e,0x86,0x5f,0x69,0x84,0x2f,0x7d,0x9f,0x0c,0xe6,0xaa,0xd1,0xec,0x2f,0x48,0xb3,0xd3,0xf5,0x57,0xc1,0xb0,0x6e,0xcf};
    sm9_fn_from_bytes(a, a76);
    sm9_fn_from_bytes(b, b76);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c76, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a77[32] = {0x92,0x45,0x80,0xe4,0xfe,0x6f,0xec,0x0e,0xf4,0x89,0x86,0xa1,0x24,0x69,0xc3,0x78,0x3f,0x9a,0x22,0xe0,0x25,0x61,0xe8,0xbf,0x3d,0x75,0x26,0x25,0x8b,0x38,0xc3,0x02};
    static std::uint8_t b77[32] = {0x23,0xbb,0xbb,0x37,0x3e,0xc1,0x89,0x0e,0x5b,0xa7,0x3e,0xe9,0x5a,0x43,0xfb,0xdf,0x12,0xce,0x80,0xf4,0xd2,0xa2,0x8f,0xbc,0xd5,0x27,0x3f,0x1b,0x4d,0x31,0xff,0x53};
    static std::uint8_t c77[32] = {0x9f,0xb8,0x6e,0x37,0xb2,0x27,0x9d,0x35,0x4f,0x67,0xb3,0xe8,0x15,0x7c,0x71,0xc8,0x8c,0x2b,0xb3,0x1f,0x37,0x7f,0xe1,0xf8,0x05,0x89,0x81,0x80,0xa5,0x84,0x82,0x65};
    sm9_fn_from_bytes(a, a77);
    sm9_fn_from_bytes(b, b77);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c77, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a78[32] = {0x7c,0x47,0x62,0x39,0x77,0xf8,0x12,0x03,0x9e,0x2c,0x0b,0x01,0x14,0xf4,0x59,0x41,0xaa,0x06,0x23,0x64,0xbd,0xc8,0x4a,0x51,0xf9,0x40,0xb4,0x51,0x17,0xca,0x1c,0xdf};
    static std::uint8_t b78[32] = {0x39,0x68,0x76,0x48,0xc4,0x42,0x9a,0x89,0xc8,0xc2,0x51,0x22,0xed,0x1e,0x64,0x85,0x6b,0x7d,0xf2,0x09,0x56,0x99,0x9d,0x52,0x81,0x6e,0x83,0x26,0x7b,0x5a,0xa6,0x6a};
    static std::uint8_t c78[32] = {0x72,0x0f,0xb4,0xb0,0x89,0x21,0xe8,0x4b,0xcf,0x66,0x09,0x66,0x95,0x70,0x72,0x1b,0xf5,0x4f,0xab,0xf3,0x9b,0x88,0x28,0x97,0x32,0x5b,0x9d,0x67,0x99,0x04,0x84,0x4d};
    sm9_fn_from_bytes(a, a78);
    sm9_fn_from_bytes(b, b78);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c78, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a79[32] = {0x8a,0x38,0xd7,0xe5,0x6a,0xc7,0x52,0x9b,0xa8,0x4f,0x7a,0x87,0x0f,0x65,0xfa,0x8b,0x0b,0x77,0x5a,0x22,0xfa,0x7d,0x39,0x39,0xb6,0x19,0x50,0x0b,0xe9,0x8f,0xd2,0x8c};
    static std::uint8_t b79[32] = {0x2a,0x9c,0x64,0x0c,0x4f,0xd9,0xdd,0xf1,0xbb,0xab,0x23,0xba,0x30,0xc3,0x2b,0x59,0x88,0x67,0xf0,0x54,0xa8,0x1a,0xcd,0x1c,0xa3,0xe9,0x30,0x10,0x27,0xcc,0x06,0xff};
    static std::uint8_t c79[32] = {0x7f,0x98,0xc3,0x01,0xb9,0x35,0xef,0xb5,0x71,0x3a,0xb3,0xb2,0xa9,0x29,0x09,0x3a,0xd5,0xa9,0x2d,0x9a,0x94,0x4d,0xa1,0x25,0x61,0x6d,0x04,0xbf,0xf8,0x05,0x3d,0x03};
    sm9_fn_from_bytes(a, a79);
    sm9_fn_from_bytes(b, b79);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c79, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a80[32] = {0x45,0x45,0xf5,0x03,0xbb,0x9c,0x74,0x7a,0x0a,0x43,0x95,0x41,0x52,0xee,0xd8,0xd0,0x0c,0xed,0xb3,0x2a,0x60,0x6d,0xa4,0x00,0xb2,0xd5,0xec,0x51,0x59,0x3d,0x7e,0x2c};
    static std::uint8_t b80[32] = {0x00,0x8d,0x38,0x43,0xb1,0x4a,0xeb,0x54,0x47,0x91,0xca,0x34,0x4f,0x23,0x2e,0x23,0x42,0xa9,0xa1,0x91,0x87,0xcf,0x4a,0xef,0x12,0xf9,0x01,0x83,0xd4,0x08,0x06,0x2f};
    static std::uint8_t c80[32] = {0x75,0x3d,0xd8,0xff,0xbb,0x88,0xcf,0x28,0x96,0x6b,0xfc,0x13,0x13,0x61,0x29,0x31,0x17,0x2b,0x76,0x60,0x8d,0xf0,0x35,0x30,0xfd,0x59,0x95,0xec,0x52,0xe8,0xad,0x56};
    sm9_fn_from_bytes(a, a80);
    sm9_fn_from_bytes(b, b80);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c80, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a81[32] = {0x11,0x61,0x0e,0x54,0x03,0x44,0x11,0x60,0x5b,0x8d,0x32,0xce,0x78,0x62,0xa8,0x12,0xcb,0xcc,0x3d,0x0f,0xff,0x54,0x99,0x71,0xf1,0x48,0x1a,0x63,0x6b,0x8a,0xf6,0x5a};
    static std::uint8_t b81[32] = {0x37,0x5d,0xe7,0x72,0xb4,0xfe,0x28,0x02,0xde,0x65,0x55,0xb8,0x8d,0x96,0x44,0x2e,0x6b,0xe7,0x07,0x95,0xab,0xa0,0x41,0x2c,0x94,0xbe,0xe4,0x49,0x67,0xa2,0x12,0x21};
    static std::uint8_t c81[32] = {0x68,0x73,0x73,0x0b,0x05,0x0e,0x18,0xce,0x33,0x96,0x1a,0x81,0xd6,0x1d,0x41,0xda,0xb8,0xa0,0xa5,0xe5,0xdb,0x67,0x57,0x4b,0x31,0x09,0xf6,0x09,0x24,0xf7,0x47,0xcd};
    sm9_fn_from_bytes(a, a81);
    sm9_fn_from_bytes(b, b81);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c81, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a82[32] = {0x42,0x56,0xd4,0x43,0x76,0x75,0x0f,0x7e,0xe1,0x68,0x98,0xe0,0x69,0x89,0xe0,0x00,0xaa,0x5a,0xba,0x8e,0x61,0x28,0xfd,0x3a,0x2c,0xe3,0x93,0x90,0xb8,0xf4,0xe7,0x35};
    static std::uint8_t b82[32] = {0x80,0x05,0x15,0xbb,0x3f,0xda,0x02,0x80,0x12,0x7d,0x96,0x83,0x7b,0xab,0x01,0xfe,0x6c,0x3b,0x59,0xb9,0x1e,0x39,0xf9,0x46,0xc2,0x89,0x98,0xf6,0xab,0x25,0x0b,0x67};
    static std::uint8_t c82[32] = {0x2e,0xc7,0x5f,0x52,0xd8,0x95,0xf1,0x28,0x2a,0x2a,0x9a,0xb1,0x42,0x96,0xcf,0x7f,0xe4,0xd5,0xa3,0xf1,0xf9,0x1e,0x44,0xbc,0x7e,0x2f,0x14,0x1a,0x28,0x73,0x9a,0xce};
    sm9_fn_from_bytes(a, a82);
    sm9_fn_from_bytes(b, b82);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c82, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a83[32] = {0x3c,0x38,0xaf,0xef,0x4a,0x14,0x35,0xee,0x27,0x2f,0x08,0xc7,0xea,0x1a,0x97,0x4b,0x7a,0xa9,0x9a,0x99,0x1c,0xfa,0x78,0x9d,0x12,0x81,0x4a,0xf5,0xda,0xa4,0x0c,0xdf};
    static std::uint8_t b83[32] = {0x28,0x1b,0xbc,0x72,0x0e,0xf8,0x56,0x69,0xf7,0x1a,0x45,0x3e,0x78,0x7a,0xa4,0x29,0x95,0xdd,0x9d,0x68,0x99,0xb5,0x05,0x30,0x7e,0xf2,0xfb,0x6e,0xa5,0xd2,0xfe,0x09};
    static std::uint8_t c83[32] = {0x25,0x92,0x4f,0x0a,0x75,0xe7,0x62,0x4d,0xcd,0x0f,0xcf,0xc4,0x87,0xb5,0x0d,0xb8,0x7f,0xf7,0x45,0x60,0xab,0x6c,0xc0,0x58,0x52,0x7b,0x14,0xbf,0x9b,0xa0,0x5e,0xf2};
    sm9_fn_from_bytes(a, a83);
    sm9_fn_from_bytes(b, b83);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c83, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a84[32] = {0x2b,0x0e,0xe5,0xc1,0x4f,0xd8,0x04,0x64,0x10,0xd0,0x63,0x5c,0x11,0xba,0xe5,0x2f,0x1d,0xe8,0x5e,0x6b,0x51,0xed,0x33,0x42,0xee,0x23,0xe3,0x8a,0xe1,0xe2,0x4b,0x70};
    static std::uint8_t b84[32] = {0x4b,0x9b,0xd6,0xae,0x9c,0x5b,0x3c,0xa4,0xe2,0xfb,0xe2,0x12,0xd4,0x50,0x01,0x68,0x09,0xe0,0x45,0xe0,0x9c,0x14,0x38,0x0f,0xf2,0x54,0xe1,0x57,0x21,0x95,0xe5,0xf2};
    static std::uint8_t c84[32] = {0x53,0x6e,0xf7,0xb6,0x9a,0x9b,0x77,0xfb,0x92,0x6f,0xc3,0x94,0x09,0xc5,0x39,0xad,0xd8,0x1b,0xf5,0x05,0x57,0x90,0x1a,0x23,0x6b,0x08,0x0a,0x79,0x00,0x08,0x6e,0x34};
    sm9_fn_from_bytes(a, a84);
    sm9_fn_from_bytes(b, b84);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c84, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a85[32] = {0x05,0xb7,0x9e,0x74,0x5f,0x0a,0x1e,0x46,0x45,0x0e,0xf4,0xc1,0xfb,0x87,0xc8,0x5e,0xd4,0x86,0x5a,0xc6,0x8a,0x01,0xd2,0x5d,0x1b,0x59,0x09,0x90,0xef,0x24,0x2b,0x99};
    static std::uint8_t b85[32] = {0x37,0x16,0x1f,0x04,0x10,0x24,0xd0,0xc7,0x82,0x73,0x81,0x25,0x96,0xf6,0x89,0x5f,0xc2,0x51,0xbb,0xee,0x8f,0x3b,0xa5,0x4c,0x52,0x40,0xbb,0x21,0x39,0x38,0x79,0x9b};
    static std::uint8_t c85[32] = {0x96,0xd7,0xca,0xf8,0x82,0x62,0xae,0xa9,0x0a,0x3b,0x01,0x4f,0x3f,0xef,0x49,0xf4,0xdb,0x2b,0x77,0x9c,0x1d,0x3d,0x87,0x17,0x75,0x4e,0x4a,0x52,0x0e,0xa3,0xb1,0x2f};
    sm9_fn_from_bytes(a, a85);
    sm9_fn_from_bytes(b, b85);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c85, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a86[32] = {0x53,0x67,0xc5,0x4c,0x4c,0x7b,0x7c,0x79,0x85,0xa6,0xa6,0xc5,0x14,0x48,0x66,0x9e,0x8e,0x73,0x6f,0x1d,0xeb,0x6f,0xdd,0x82,0xd4,0xed,0xf9,0xa5,0x55,0x95,0x3a,0xfe};
    static std::uint8_t b86[32] = {0x44,0x0c,0x65,0x1b,0xae,0xee,0x0d,0x13,0x3f,0x40,0xce,0x52,0xf2,0xcc,0x62,0x94,0x3d,0x33,0xc4,0x8a,0xe3,0x25,0x02,0x9b,0x49,0x3a,0x2b,0xdf,0xfd,0xa5,0xf0,0x39};
    static std::uint8_t c86[32] = {0x4d,0xcf,0x59,0x2b,0x88,0x0c,0x10,0x77,0xe9,0xe0,0xea,0x25,0x7c,0xff,0xa5,0x0c,0xf7,0xad,0x40,0xa1,0x8b,0x01,0x0e,0xb1,0x04,0x8f,0x13,0xdd,0xab,0xf2,0x67,0x5c};
    sm9_fn_from_bytes(a, a86);
    sm9_fn_from_bytes(b, b86);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c86, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a87[32] = {0x15,0x7c,0x70,0xcb,0xb0,0xf0,0xf2,0x6d,0x80,0x73,0x92,0x1a,0x83,0x85,0xa6,0xcc,0xbc,0xb4,0x9e,0xf5,0x73,0x55,0x39,0x03,0x7d,0xcd,0x59,0xda,0xba,0x86,0x22,0x13};
    static std::uint8_t b87[32] = {0x17,0x74,0x45,0xe4,0x15,0xe2,0xec,0x12,0xbe,0x7c,0x83,0xc0,0x67,0x9e,0x11,0xf0,0x43,0x23,0xf3,0x9a,0xa0,0x34,0xa8,0xcb,0xc6,0x3c,0x72,0x21,0xe2,0xe0,0x71,0x6a};
    static std::uint8_t c87[32] = {0x96,0xba,0xcd,0xcc,0x83,0x66,0x4a,0xde,0x94,0x39,0x9a,0x12,0x80,0x45,0xc5,0x22,0x47,0x47,0xaa,0xb9,0xf8,0xa3,0x1b,0xfe,0x6e,0xab,0xaf,0x21,0xbb,0xe8,0xdd,0x74};
    sm9_fn_from_bytes(a, a87);
    sm9_fn_from_bytes(b, b87);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c87, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a88[32] = {0x47,0xff,0x6a,0x1d,0xaa,0x11,0xf8,0x99,0x52,0x96,0x64,0xd5,0x26,0xd6,0x97,0x91,0xfd,0x24,0x98,0x57,0x40,0xd2,0x30,0x31,0x12,0x1c,0x28,0x88,0x10,0x47,0x19,0xb1};
    static std::uint8_t b88[32] = {0x36,0xfc,0x3d,0x91,0x4c,0xdd,0x09,0x30,0x73,0x6a,0x0e,0xfe,0x13,0xcd,0x34,0xec,0xa5,0x06,0x03,0x85,0xe8,0x69,0x67,0xbe,0xf7,0x7e,0x71,0x1c,0x6c,0x4b,0xe1,0x78};
    static std::uint8_t c88[32] = {0x19,0x96,0xfd,0x1d,0x6f,0x87,0x9f,0x07,0x9c,0x0e,0x26,0x6d,0xb4,0xe8,0x97,0xbf,0x54,0xfa,0xac,0xe4,0xf3,0x35,0xb8,0x4b,0x27,0x3d,0xd6,0x31,0x34,0xfc,0xe7,0xa0};
    sm9_fn_from_bytes(a, a88);
    sm9_fn_from_bytes(b, b88);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c88, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a89[32] = {0x07,0xbf,0x63,0x0a,0x20,0xb7,0xa7,0x0b,0x94,0x86,0x63,0xe8,0x86,0x9b,0x0d,0xc1,0xbc,0x1f,0x68,0x5c,0x84,0x4b,0xad,0x4e,0xef,0xa3,0x7b,0xa9,0xf6,0xc4,0x2f,0x3a};
    static std::uint8_t b89[32] = {0x40,0xd7,0x7a,0x64,0x46,0x14,0x4c,0x2f,0x52,0xb0,0x2d,0x37,0x89,0xe9,0x23,0x9d,0x33,0x28,0x7e,0xdd,0xe7,0x12,0x9c,0x36,0x45,0x50,0x5b,0x51,0x14,0xf2,0x73,0x66};
    static std::uint8_t c89[32] = {0x72,0x38,0xef,0x70,0xe0,0x4f,0xd5,0x4b,0xc3,0x5f,0x73,0xc6,0xfe,0xda,0xe5,0xfb,0x00,0x63,0xb4,0x3f,0xf2,0x8e,0xa6,0x5d,0xc8,0x6e,0xa6,0xa9,0xbc,0x82,0x7f,0xa8};
    sm9_fn_from_bytes(a, a89);
    sm9_fn_from_bytes(b, b89);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c89, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a90[32] = {0x81,0x45,0x6b,0x13,0x8c,0xfd,0xb2,0x9d,0xfe,0x16,0xb5,0xca,0x5e,0xb1,0xcc,0xa6,0x5a,0x2d,0x93,0x3e,0xba,0x86,0x67,0xaa,0x18,0x6b,0xc9,0xeb,0xa5,0x92,0x7b,0x23};
    static std::uint8_t b90[32] = {0x1c,0xb6,0xaf,0x8d,0x7e,0x7c,0xfa,0x95,0x4e,0xd9,0x72,0x10,0x45,0xe0,0x87,0x18,0xe4,0xaa,0x74,0xf9,0x63,0xfa,0x26,0x86,0xde,0xb2,0x79,0xf3,0xe7,0x20,0xb3,0xde};
    static std::uint8_t c90[32] = {0x4e,0xe0,0x85,0x09,0x70,0xc1,0x34,0xf1,0xf1,0x1f,0x21,0x2e,0xe3,0x61,0x62,0x45,0x56,0x1e,0xcd,0xa0,0x1d,0xda,0x7e,0x68,0x5a,0xeb,0x35,0x0e,0xb5,0x76,0xe0,0xfd};
    sm9_fn_from_bytes(a, a90);
    sm9_fn_from_bytes(b, b90);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c90, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a91[32] = {0x5b,0x75,0x3b,0x15,0x60,0x4e,0xea,0xd7,0x15,0xb0,0x2d,0xd4,0x8b,0xab,0x65,0x0f,0x60,0x5b,0xfe,0x91,0x20,0xe4,0x88,0x02,0x7c,0x11,0xbf,0x4b,0x21,0x72,0x58,0x2a};
    static std::uint8_t b91[32] = {0x69,0xde,0x9b,0xc1,0x92,0x43,0xf4,0x58,0x8d,0x89,0x35,0xfd,0x05,0x33,0x5d,0xd5,0xe6,0xe4,0x67,0xc1,0xa9,0x9d,0x59,0xc9,0x13,0x0f,0xfe,0x5d,0x80,0xe8,0x8d,0xda};
    static std::uint8_t c91[32] = {0x28,0x9c,0xa5,0xb9,0x22,0x76,0x8b,0x5d,0xbb,0xd9,0x16,0x30,0xe3,0x29,0x40,0xf1,0xa9,0x21,0x4d,0xc5,0x81,0x9c,0x5c,0x04,0xe0,0x20,0x00,0xcf,0x06,0xd0,0x1d,0xb1};
    sm9_fn_from_bytes(a, a91);
    sm9_fn_from_bytes(b, b91);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c91, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a92[32] = {0x38,0x19,0x48,0x58,0x82,0x3d,0xe4,0x1e,0x9b,0x41,0x2d,0xd6,0xfe,0xb1,0x94,0xd2,0x11,0x7a,0x14,0x38,0xae,0x14,0x0b,0x1c,0x57,0xd2,0x1a,0x46,0x79,0xf2,0x38,0xee};
    static std::uint8_t b92[32] = {0x13,0xdd,0x6f,0xae,0x37,0x61,0x5f,0xf5,0x13,0x81,0xa7,0xad,0x3e,0x78,0xce,0xf4,0x15,0xc7,0xc9,0x73,0x77,0xdd,0xba,0xf4,0x3a,0x68,0xe0,0xff,0xf2,0x3d,0x67,0x21};
    static std::uint8_t c92[32] = {0xb2,0xbc,0xdc,0x7f,0xd9,0xd0,0xba,0x77,0xd0,0xfb,0x45,0x67,0xc0,0x3a,0xc4,0x8d,0xfd,0xd1,0x72,0x12,0x08,0xa7,0x48,0xfb,0x49,0xf7,0x5e,0xc4,0x5b,0x7b,0x6d,0xd0};
    sm9_fn_from_bytes(a, a92);
    sm9_fn_from_bytes(b, b92);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c92, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a93[32] = {0x6b,0x16,0x9d,0x40,0x78,0x02,0xa6,0xd1,0xff,0xd2,0x20,0x1c,0xcd,0x3c,0xcd,0x6f,0x62,0xf9,0x8c,0x84,0x75,0xea,0xac,0x41,0x86,0xc5,0x63,0xaa,0xb1,0x1f,0x0f,0x7a};
    static std::uint8_t b93[32] = {0x83,0xde,0x44,0xdf,0x65,0xe5,0x81,0x53,0x1a,0x73,0x13,0xe5,0xb3,0xb3,0x4e,0x8e,0xcb,0x19,0x66,0x68,0xa1,0x0c,0x72,0xc3,0x33,0xea,0xac,0xd7,0x87,0x6a,0x2b,0xb7};
    static std::uint8_t c93[32] = {0x05,0xd0,0xcb,0x85,0x82,0x57,0x07,0x71,0x26,0x06,0x3e,0x49,0xd4,0x8d,0xfb,0x73,0x5b,0xc2,0x45,0xcd,0x54,0x76,0xa8,0x52,0xce,0x0e,0x5d,0x33,0xda,0x0e,0x3f,0x8b};
    sm9_fn_from_bytes(a, a93);
    sm9_fn_from_bytes(b, b93);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c93, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a94[32] = {0x07,0xed,0xe5,0xec,0x7c,0xd0,0xea,0x92,0xc9,0xb2,0x53,0x74,0xbe,0x42,0xd3,0x2c,0xe9,0x80,0xb1,0x72,0x7a,0xe2,0x83,0xc5,0x57,0xa5,0x49,0xdf,0x8f,0x0b,0xae,0xe2};
    static std::uint8_t b94[32] = {0xab,0x4a,0x0f,0x7b,0x96,0x42,0xbc,0x44,0xaf,0x03,0x14,0x79,0x18,0xa4,0x53,0x71,0xab,0x5a,0xce,0x4b,0xf4,0x2e,0xe5,0x98,0xb4,0x38,0x62,0x83,0x8b,0x6b,0x8d,0x99};
    static std::uint8_t c94[32] = {0x3f,0xea,0x8f,0xdf,0x0b,0x98,0x6f,0x2c,0xec,0xea,0x1d,0x90,0x8e,0x34,0xd1,0xa3,0xb7,0x00,0xaa,0x32,0x6e,0x33,0x31,0x31,0xce,0x56,0x4b,0xb4,0xb8,0x3b,0x88,0xac};
    sm9_fn_from_bytes(a, a94);
    sm9_fn_from_bytes(b, b94);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c94, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a95[32] = {0x43,0x86,0x29,0xcc,0x37,0x0b,0x90,0xf4,0x3e,0xf5,0x68,0x21,0x27,0x85,0x57,0x48,0x75,0xd1,0xac,0xd7,0xf3,0x1b,0x72,0x2a,0x2d,0x0d,0x48,0x3f,0x33,0x98,0xfd,0x3d};
    static std::uint8_t b95[32] = {0x12,0x8f,0xb0,0xcf,0xe6,0x26,0xba,0x71,0x48,0x49,0xff,0x0b,0x88,0xb1,0x80,0x16,0xb8,0xc7,0xef,0x9b,0x80,0x0b,0x07,0xd7,0x8f,0x1c,0x83,0x3e,0xe8,0xeb,0xf6,0x8a};
    static std::uint8_t c95[32] = {0x9d,0x11,0xd3,0x33,0xd8,0xbe,0xa4,0xdd,0x14,0xf6,0x9f,0x29,0xcc,0xe7,0x35,0xea,0xfa,0x35,0x12,0x19,0x14,0x54,0x10,0x88,0x41,0xe3,0x99,0xc6,0xea,0x0a,0xb4,0x3b};
    sm9_fn_from_bytes(a, a95);
    sm9_fn_from_bytes(b, b95);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c95, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a96[32] = {0x34,0xe8,0x92,0x54,0xf4,0x01,0xa5,0x36,0x7f,0x4a,0x84,0xa9,0x74,0x2e,0xaa,0xfc,0xba,0xde,0x48,0xbb,0xe7,0xc8,0xfb,0x66,0x6a,0x41,0xad,0xdf,0x55,0x49,0x20,0xe1};
    static std::uint8_t b96[32] = {0xa8,0x28,0xe7,0x00,0x79,0x59,0x2e,0x01,0x22,0x1a,0xfc,0xd0,0x83,0x10,0x2b,0xe7,0x24,0xbc,0xed,0x86,0x64,0x52,0x65,0xf3,0xa6,0x38,0x56,0xce,0xfe,0x17,0xd8,0x97};
    static std::uint8_t c96[32] = {0x2f,0xab,0x60,0xf2,0xf0,0x38,0x05,0x6c,0xd1,0x0e,0xa9,0x3a,0xce,0x8d,0x8b,0xcc,0x1c,0x0b,0x54,0x7a,0xf7,0xa1,0x8b,0xbd,0xd9,0x53,0xc3,0xef,0xd0,0xce,0xfd,0x16};
    sm9_fn_from_bytes(a, a96);
    sm9_fn_from_bytes(b, b96);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c96, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a97[32] = {0x1c,0x7c,0x39,0x65,0xa6,0x10,0xc3,0x97,0x3d,0xba,0xa5,0x1f,0x8a,0xe3,0xb0,0x47,0x24,0x41,0x22,0xa9,0xf4,0x17,0x0d,0xd9,0x13,0x70,0x01,0xa8,0x6b,0xff,0xf9,0x92};
    static std::uint8_t b97[32] = {0x76,0xf5,0x78,0x59,0x0e,0x3f,0x1b,0x5d,0x2f,0x9c,0xac,0x21,0x92,0x69,0xe5,0x04,0x08,0xac,0x5f,0x49,0xfb,0xcb,0x11,0x41,0xe6,0x04,0x13,0x90,0x9f,0xa6,0x7c,0xdf};
    static std::uint8_t c97[32] = {0x4f,0x2f,0xd6,0x93,0xe2,0xc5,0xfe,0x73,0xc5,0x86,0x63,0x61,0xa3,0x9d,0x24,0x2f,0x4d,0xff,0x2b,0x9d,0x8b,0x81,0x93,0x98,0xfc,0x79,0xc8,0x59,0x03,0x5e,0x05,0xa1};
    sm9_fn_from_bytes(a, a97);
    sm9_fn_from_bytes(b, b97);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c97, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a98[32] = {0x70,0xce,0xa1,0x18,0x42,0xdc,0x11,0xf6,0xb5,0x0d,0x95,0xf9,0xe1,0x99,0x8a,0xec,0x53,0xe6,0xf1,0x19,0x10,0x34,0x0a,0xf9,0x6f,0xf9,0x30,0x54,0xb3,0x1f,0x91,0x7d};
    static std::uint8_t b98[32] = {0x30,0x3b,0xba,0x45,0x42,0xfc,0x98,0x85,0x82,0xe7,0x1b,0xf2,0x84,0x60,0x39,0x65,0xf0,0xc2,0x97,0xba,0x3d,0x9b,0xca,0x37,0xec,0xb6,0x4d,0xc5,0x8e,0x69,0xe4,0x9b};
    static std::uint8_t c98[32] = {0xaa,0x24,0x7e,0x37,0xce,0x3b,0x65,0x52,0x27,0x2a,0x7d,0x1a,0xe7,0x63,0xa0,0xb6,0x3f,0x5c,0xff,0x57,0x87,0xf5,0x3e,0x71,0xf7,0x46,0x4d,0x61,0xca,0x42,0x4d,0xda};
    sm9_fn_from_bytes(a, a98);
    sm9_fn_from_bytes(b, b98);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c98, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
    static std::uint8_t a99[32] = {0x68,0x67,0x67,0x24,0xf4,0x1f,0x65,0x8e,0x85,0x70,0x7d,0x3f,0xee,0xd5,0x16,0x17,0xfc,0xc0,0xf1,0xab,0xb6,0x5c,0xef,0xea,0xb2,0xbd,0xc0,0xf4,0x3a,0x4a,0x9c,0x93};
    static std::uint8_t b99[32] = {0x33,0x08,0x1d,0x0c,0x4a,0xa6,0x6b,0xd5,0x0a,0x59,0x3a,0xe6,0x55,0x2b,0xf8,0x54,0x1b,0x48,0x2d,0xfb,0x8f,0xe3,0xd1,0x14,0x1b,0x65,0x46,0xd6,0x1e,0xc6,0x69,0xc4};
    static std::uint8_t c99[32] = {0x6b,0xb9,0x6c,0xad,0x83,0xbc,0x01,0xf5,0x8b,0xdc,0x73,0xc2,0xe1,0x51,0x8b,0x3f,0x04,0x38,0x76,0x32,0x91,0x2c,0x07,0x99,0x80,0xaa,0xfc,0x2a,0xc1,0x74,0x0b,0x95};
    sm9_fn_from_bytes(a, a99);
    sm9_fn_from_bytes(b, b99);
    sm9_fn_mul(c, a, b);
    sm9_fn_to_bytes(c_data, c);
    if (std::memcmp(c99, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fn_mul");
    }
}